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