We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider:
[<Fact>] let ``StringCollectionReader value lookups are case-insensitive`` () = let values = [ "FString", [|"John Doe"; "Jane Doe"|] |> StringValues ] |> Map.ofList |> fun m -> Dictionary(m) let scr = StringCollectionReader(values) // single values scr.TryGet "FSTRING" |> Option.iter (should equal "John Doe") scr.TryGet "FString" |> Option.iter (should equal "John Doe") scr.TryGet "fstriNG" |> Option.iter (should equal "John Doe") scr?FSTRING.AsString() |> should equal "John Doe" scr?FString.AsString() |> should equal "John Doe" scr?fstrINg.AsString() |> should equal "John Doe" // arrays scr.TryArrayString "FSTRING" |> Option.iter (should equal [|"John Doe";"Jane Doe"|]) scr.TryArrayString "fString" |> Option.iter (should equal [|"John Doe";"Jane Doe"|]) scr.TryArrayString "fstriNG" |> Option.iter (should equal [|"John Doe";"Jane Doe"|]) scr?FSTRING.AsArrayString() |> should equal [|"John Doe";"Jane Doe"|] scr?fString.AsArrayString() |> should equal [|"John Doe";"Jane Doe"|] scr?fstriNG.AsArrayString() |> should equal [|"John Doe";"Jane Doe"|]
The text was updated successfully, but these errors were encountered:
pimbrouwers
Successfully merging a pull request may close this issue.
Consider:
The text was updated successfully, but these errors were encountered: