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