Base:
45 references to ToString
Microsoft.AspNetCore.Http.Results.Tests (17)
src\Shared\ResultsTests\FileContentResultTestBase.cs (6)
82Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 120Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 160Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 194Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 226Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 256Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (7)
61Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 101Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 143Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 180Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 214Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 246Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 361Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
90Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
107Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 141Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 174Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
Microsoft.AspNetCore.Mvc.Core.Test (17)
src\Shared\ResultsTests\FileContentResultTestBase.cs (6)
82Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 120Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 160Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 194Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 226Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 256Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (7)
61Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 101Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 143Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 180Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 214Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 246Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 361Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
90Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
107Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 141Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag); 174Assert.Equal(entityTag.ToString(), httpResponse.Headers.ETag);
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheMiddlewareTests.cs (3)
263context.HttpContext.Request.Headers.IfNoneMatch = EntityTagHeaderValue.Any.ToString(); 325.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = responseETag.ToString() }); 327context.HttpContext.Request.Headers.IfNoneMatch = requestETag.ToString();
Microsoft.AspNetCore.ResponseCaching.Tests (3)
ResponseCachingMiddlewareTests.cs (3)
264context.HttpContext.Request.Headers.IfNoneMatch = EntityTagHeaderValue.Any.ToString(); 321context.CachedResponseHeaders[HeaderNames.ETag] = responseETag.ToString(); 322context.HttpContext.Request.Headers.IfNoneMatch = requestETag.ToString();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
51_remainingHeaders.Add(new StaticAssetResponseHeader("ETag", _etag.ToString()));
Microsoft.Net.Http.Headers (1)
RangeConditionHeaderValue.cs (1)
78return _entityTag.ToString();
Microsoft.Net.Http.Headers.Tests (3)
EntityTagHeaderValueTest.cs (3)
51Assert.Equal("\"e tag\"", etag.ToString()); 54Assert.Equal("W/\"e tag\"", etag.ToString()); 57Assert.Equal("\"\"", etag.ToString());