11 writes to Quality
Microsoft.Net.Http.Headers (1)
MediaTypeHeaderValue.cs (1)
65
Quality
= quality;
Microsoft.Net.Http.Headers.Tests (10)
MediaTypeHeaderValueTest.cs (10)
269
mediaType.
Quality
= 0.563156454;
275
mediaType.
Quality
= null;
278
mediaType.
Quality
= null; // It's OK to set it again to null; no exception.
292
mediaType.
Quality
= 0.9;
323
Assert.Throws<ArgumentOutOfRangeException>(() => mediaType.
Quality
= 1.01);
428
expected.
Quality
= 1.0;
433
expected.
Quality
= 0.5;
446
expected.
Quality
= 0;
486
value1.
Quality
= 1.0;
492
value2.
Quality
= 0.5;
9 references to Quality
Microsoft.Net.Http.Headers (2)
MediaTypeHeaderValueComparer.cs (2)
121
var mediaType1Quality = mediaType1.
Quality
?? HeaderQuality.Match;
122
var mediaType2Quality = mediaType2.
Quality
?? HeaderQuality.Match;
Microsoft.Net.Http.Headers.Tests (7)
MediaTypeHeaderValueTest.cs (7)
114
Assert.Equal(0.08, mediaType.
Quality
);
270
Assert.Equal(0.563, mediaType.
Quality
);
276
Assert.Null(mediaType.
Quality
);
290
Assert.Equal(0.132, mediaType.
Quality
);
293
Assert.Equal(0.9, mediaType.
Quality
);
298
Assert.Null(mediaType.
Quality
);
310
Assert.Equal(0.132, mediaType.
Quality
);