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