54 references to StringWithQualityHeaderValue
Microsoft.Net.Http.Headers.Tests (54)
StringWithQualityHeaderValueTest.cs (54)
11
var value = new
StringWithQualityHeaderValue
("token");
15
Assert.Throws<ArgumentException>(() => new
StringWithQualityHeaderValue
(null));
16
Assert.Throws<ArgumentException>(() => new
StringWithQualityHeaderValue
(""));
17
Assert.Throws<FormatException>(() => new
StringWithQualityHeaderValue
("in valid"));
38
var value = new
StringWithQualityHeaderValue
("token");
61
var value4 = new
StringWithQualityHeaderValue
("t");
65
var value8 = new
StringWithQualityHeaderValue
("T");
66
var value9 = new
StringWithQualityHeaderValue
("x");
84
var value4 = new
StringWithQualityHeaderValue
("t");
88
var value8 = new
StringWithQualityHeaderValue
("T");
89
var value9 = new
StringWithQualityHeaderValue
("x");
106
CheckValidParse("text", new
StringWithQualityHeaderValue
("text"));
110
CheckValidParse(" text ", new
StringWithQualityHeaderValue
("text"));
114
CheckValidParse("*", new
StringWithQualityHeaderValue
("*"));
116
CheckValidParse(" t", new
StringWithQualityHeaderValue
("t"));
122
CheckValidParse("iso-8859-5", new
StringWithQualityHeaderValue
("iso-8859-5"));
167
CheckValidTryParse("text", new
StringWithQualityHeaderValue
("text"));
171
CheckValidTryParse(" text ", new
StringWithQualityHeaderValue
("text"));
221
new
StringWithQualityHeaderValue
("text1"),
222
new
StringWithQualityHeaderValue
("text2"),
223
new
StringWithQualityHeaderValue
("textA"),
224
new
StringWithQualityHeaderValue
("textB"),
229
new
StringWithQualityHeaderValue
("text7"),
231
new
StringWithQualityHeaderValue
("text9"),
258
new
StringWithQualityHeaderValue
("text1"),
259
new
StringWithQualityHeaderValue
("text2"),
260
new
StringWithQualityHeaderValue
("textA"),
261
new
StringWithQualityHeaderValue
("textB"),
266
new
StringWithQualityHeaderValue
("text7"),
268
new
StringWithQualityHeaderValue
("text9"),
295
new
StringWithQualityHeaderValue
("text1"),
296
new
StringWithQualityHeaderValue
("text2"),
297
new
StringWithQualityHeaderValue
("textA"),
298
new
StringWithQualityHeaderValue
("textB"),
303
new
StringWithQualityHeaderValue
("text7"),
305
new
StringWithQualityHeaderValue
("text9"),
332
new
StringWithQualityHeaderValue
("text1"),
333
new
StringWithQualityHeaderValue
("text2"),
334
new
StringWithQualityHeaderValue
("textA"),
335
new
StringWithQualityHeaderValue
("textB"),
340
new
StringWithQualityHeaderValue
("text7"),
342
new
StringWithQualityHeaderValue
("text9"),
370
new
StringWithQualityHeaderValue
("text1"),
371
new
StringWithQualityHeaderValue
("1"),
372
new
StringWithQualityHeaderValue
("text2"),
375
new
StringWithQualityHeaderValue
("stuff"),
378
new
StringWithQualityHeaderValue
("text7"),
380
new
StringWithQualityHeaderValue
("text9"),
428
new
StringWithQualityHeaderValue
("text1"),
429
new
StringWithQualityHeaderValue
("1"),
430
new
StringWithQualityHeaderValue
("text2"),
433
new
StringWithQualityHeaderValue
("stuff"),
436
new
StringWithQualityHeaderValue
("text7"),
438
new
StringWithQualityHeaderValue
("text9"),