18 references to CheckValidParse
Microsoft.Net.Http.Headers.Tests (18)
StringWithQualityHeaderValueTest.cs (18)
106CheckValidParse("text", new StringWithQualityHeaderValue("text")); 107CheckValidParse("text;q=0.5", new StringWithQualityHeaderValue("text", 0.5)); 108CheckValidParse("text ; q = 0.5", new StringWithQualityHeaderValue("text", 0.5)); 109CheckValidParse("\r\n text ; q = 0.5 ", new StringWithQualityHeaderValue("text", 0.5)); 110CheckValidParse(" text ", new StringWithQualityHeaderValue("text")); 111CheckValidParse(" \r\n text \r\n ; \r\n q = 0.123", new StringWithQualityHeaderValue("text", 0.123)); 112CheckValidParse(" text ; q = 0.123 ", new StringWithQualityHeaderValue("text", 0.123)); 113CheckValidParse("text;q=1 ", new StringWithQualityHeaderValue("text", 1)); 114CheckValidParse("*", new StringWithQualityHeaderValue("*")); 115CheckValidParse("*;q=0.7", new StringWithQualityHeaderValue("*", 0.7)); 116CheckValidParse(" t", new StringWithQualityHeaderValue("t")); 117CheckValidParse("t;q=0.", new StringWithQualityHeaderValue("t", 0)); 118CheckValidParse("t;q=1.", new StringWithQualityHeaderValue("t", 1)); 119CheckValidParse("t;q=1.000", new StringWithQualityHeaderValue("t", 1)); 120CheckValidParse("t;q=0.12345678", new StringWithQualityHeaderValue("t", 0.12345678)); 121CheckValidParse("t ; q = 0", new StringWithQualityHeaderValue("t", 0)); 122CheckValidParse("iso-8859-5", new StringWithQualityHeaderValue("iso-8859-5")); 123CheckValidParse("unicode-1-1; q=0.8", new StringWithQualityHeaderValue("unicode-1-1", 0.8));