17 references to CheckValidParse
Microsoft.Net.Http.Headers.Tests (17)
MediaTypeHeaderValueTest.cs (17)
391CheckValidParse("\r\n text/plain ", new MediaTypeHeaderValue("text/plain")); 392CheckValidParse("text/plain", new MediaTypeHeaderValue("text/plain")); 394CheckValidParse("\r\n text / plain ; charset = utf-8 ", new MediaTypeHeaderValue("text/plain") { Charset = "utf-8" }); 395CheckValidParse(" text/plain;charset=utf-8", new MediaTypeHeaderValue("text/plain") { Charset = "utf-8" }); 397CheckValidParse("text/plain; charset=iso-8859-1", new MediaTypeHeaderValue("text/plain") { Charset = "iso-8859-1" }); 401CheckValidParse(" text/plain; custom=value;charset=utf-8", expected); 405CheckValidParse(" text/plain; custom", expected); 409CheckValidParse("text / plain ; custom =\r\n \"x\" ; charset = utf-8 ", expected); 413CheckValidParse("text/plain;custom=\"x\";charset=utf-8", expected); 416CheckValidParse("text/plain;", expected); 420CheckValidParse("text/plain;name=", expected); 424CheckValidParse("text/plain;name=value;", expected); 429CheckValidParse("text/plain; charset=iso-8859-1; q=1.0", expected); 434CheckValidParse("\r\n */xml; charset=utf-8; q=0.5", expected); 437CheckValidParse("*/*", expected); 442CheckValidParse("text/*; charset=utf-8; foo=bar", expected); 448CheckValidParse("text/plain; charset=utf-8; foo=bar; q=0.0", expected);