Upgrade to xunit 2.3.0-beta4
Includes a few changes as required by new analyzers added in the upgrade
This commit is contained in:
parent
5533976a53
commit
853e62216e
|
|
@ -5,7 +5,7 @@
|
||||||
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
||||||
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
||||||
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
||||||
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
<TestSdkVersion>15.3.0</TestSdkVersion>
|
||||||
<XunitVersion>2.3.0-beta2-*</XunitVersion>
|
<XunitVersion>2.3.0-beta4-build3742</XunitVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ namespace Microsoft.AspNetCore.ResponseCaching.Tests
|
||||||
// Verify modifications in the past succeeds
|
// Verify modifications in the past succeeds
|
||||||
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
|
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
|
||||||
Assert.True(ResponseCachingMiddleware.ContentIsNotModified(context));
|
Assert.True(ResponseCachingMiddleware.ContentIsNotModified(context));
|
||||||
Assert.Equal(1, sink.Writes.Count);
|
Assert.Single(sink.Writes);
|
||||||
|
|
||||||
// Verify modifications at present succeeds
|
// Verify modifications at present succeeds
|
||||||
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow);
|
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow);
|
||||||
|
|
@ -232,7 +232,7 @@ namespace Microsoft.AspNetCore.ResponseCaching.Tests
|
||||||
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10));
|
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10));
|
||||||
context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
|
context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
|
||||||
Assert.True(ResponseCachingMiddleware.ContentIsNotModified(context));
|
Assert.True(ResponseCachingMiddleware.ContentIsNotModified(context));
|
||||||
Assert.Equal(1, sink.Writes.Count);
|
Assert.Single(sink.Writes);
|
||||||
|
|
||||||
// Verify modifications at present
|
// Verify modifications at present
|
||||||
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10));
|
context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10));
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace Microsoft.AspNetCore.ResponseCaching.Tests
|
||||||
var stream = new SegmentWriteStream(1);
|
var stream = new SegmentWriteStream(1);
|
||||||
|
|
||||||
Assert.True(stream.CanWrite);
|
Assert.True(stream.CanWrite);
|
||||||
Assert.Equal(0, stream.GetSegments().Count);
|
Assert.Empty(stream.GetSegments());
|
||||||
Assert.False(stream.CanWrite);
|
Assert.False(stream.CanWrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue