public void headers_dictionary_is_case_insensitive() { var dico = HeadersDictionary.Create(new Dictionary <string, string[]> { ["accept"] = new[] { "application/json" } }); Assert.True(dico.ContainsKey("AccePT")); }
when_get_headers_item_as_string_concatenation_is_done() { var dico = HeadersDictionary.Create(new Dictionary <string, string[]> { ["accept"] = new[] { "application/json", "text/html" } }); var accept = dico["accept", HeadersValueType.Concatened]; Assert.Equal("application/json;text/html", accept); }
public void when_get_headers_item_as_string_first_is_taken() { var dico = HeadersDictionary.Create(new Dictionary <string, string[]> { ["accept"] = new[] { "application/json", "text/html" } }); var accept = dico["accept", HeadersValueType.FirstOnly]; Assert.Equal("application/json", accept); }