Update test framework versions

This commit is contained in:
Nate McMaster 2017-05-12 12:41:31 -07:00
parent d6c2834f95
commit 68e7f5727e
9 changed files with 18 additions and 30 deletions

View File

@ -4,7 +4,7 @@
<AspNetIntegrationTestingVersion>0.4.0-*</AspNetIntegrationTestingVersion>
<InternalAspNetCoreSdkVersion>2.1.0-*</InternalAspNetCoreSdkVersion>
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
<TestSdkVersion>15.0.0</TestSdkVersion>
<XunitVersion>2.2.0</XunitVersion>
<TestSdkVersion>15.3.0-*</TestSdkVersion>
<XunitVersion>2.3.0-beta2-*</XunitVersion>
</PropertyGroup>
</Project>

View File

@ -18,8 +18,4 @@
<PackageReference Include="xunit" Version="$(XunitVersion)" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

View File

@ -79,7 +79,7 @@ namespace Microsoft.AspNetCore.Internal
[InlineData(null, 0)]
[InlineData(0, null)]
[InlineData(0, 0)]
public void NormalizeRanges_ReturnsNormalizedRange(long start, long end)
public void NormalizeRanges_ReturnsNormalizedRange(long? start, long? end)
{
// Arrange
var ranges = new[]
@ -119,7 +119,7 @@ namespace Microsoft.AspNetCore.Internal
[InlineData(null, 0)]
[InlineData(0, null)]
[InlineData(0, 0)]
public void NormalizeRanges_MultipleRanges_ReturnsNormalizedRange(long start, long end)
public void NormalizeRanges_MultipleRanges_ReturnsNormalizedRange(long? start, long? end)
{
// Arrange
var ranges = new[]

View File

@ -32,8 +32,4 @@
<PackageReference Include="xunit" Version="$(XunitVersion)" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

View File

@ -57,7 +57,7 @@ namespace Microsoft.AspNetCore.StaticFiles
{
var last = File.GetLastWriteTimeUtc(Path.Combine(AppContext.BaseDirectory, "TestDocument.txt"));
var response = await client.GetAsync("TestDocument.txt");
var trimed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, TimeSpan.Zero).ToUniversalTime();
Assert.Equal(response.Content.Headers.LastModified.Value, trimed);
@ -84,7 +84,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await FoundFile_Served(baseUrl, baseDir, requestUrl);
}
public async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl)
private async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl)
{
var baseAddress = "http://localhost:12345";
var builder = new WebHostBuilder()
@ -175,7 +175,7 @@ namespace Microsoft.AspNetCore.StaticFiles
ClientDisconnect_NoWriteExceptionThrown(ServerType.WebListener);
}
public void ClientDisconnect_NoWriteExceptionThrown(ServerType serverType)
private void ClientDisconnect_NoWriteExceptionThrown(ServerType serverType)
{
var interval = TimeSpan.FromSeconds(15);
var baseAddress = "http://localhost:12345";

View File

@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await NoMatch_PassesThrough(baseUrl, baseDir, requestUrl);
}
public async Task NoMatch_PassesThrough(string baseUrl, string baseDir, string requestUrl)
private async Task NoMatch_PassesThrough(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await FoundDirectoryWithDefaultFile_PathModified(baseUrl, baseDir, requestUrl);
}
public async Task FoundDirectoryWithDefaultFile_PathModified(string baseUrl, string baseDir, string requestUrl)
private async Task FoundDirectoryWithDefaultFile_PathModified(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -129,7 +129,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await NearMatch_RedirectAddSlash(baseUrl, baseDir, requestUrl, queryString);
}
public async Task NearMatch_RedirectAddSlash(string baseUrl, string baseDir, string requestUrl, string queryString)
private async Task NearMatch_RedirectAddSlash(string baseUrl, string baseDir, string requestUrl, string queryString)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -167,7 +167,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await PostDirectory_PassesThrough(baseUrl, baseDir, requestUrl);
}
public async Task PostDirectory_PassesThrough(string baseUrl, string baseDir, string requestUrl)
private async Task PostDirectory_PassesThrough(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvder = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{

View File

@ -70,7 +70,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await NoMatch_PassesThrough(baseUrl, baseDir, requestUrl);
}
public async Task NoMatch_PassesThrough(string baseUrl, string baseDir, string requestUrl)
private async Task NoMatch_PassesThrough(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -107,7 +107,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await FoundDirectory_Served(baseUrl, baseDir, requestUrl);
}
public async Task FoundDirectory_Served(string baseUrl, string baseDir, string requestUrl)
private async Task FoundDirectory_Served(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -149,7 +149,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await NearMatch_RedirectAddSlash(baseUrl, baseDir, requestUrl, queryString);
}
public async Task NearMatch_RedirectAddSlash(string baseUrl, string baseDir, string requestUrl, string queryString)
private async Task NearMatch_RedirectAddSlash(string baseUrl, string baseDir, string requestUrl, string queryString)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -188,7 +188,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await PostDirectory_PassesThrough(baseUrl, baseDir, requestUrl);
}
public async Task PostDirectory_PassesThrough(string baseUrl, string baseDir, string requestUrl)
private async Task PostDirectory_PassesThrough(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -224,7 +224,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await HeadDirectory_HeadersButNotBodyServed(baseUrl, baseDir, requestUrl);
}
public async Task HeadDirectory_HeadersButNotBodyServed(string baseUrl, string baseDir, string requestUrl)
private async Task HeadDirectory_HeadersButNotBodyServed(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{

View File

@ -26,8 +26,4 @@
<PackageReference Include="xunit" Version="$(XunitVersion)" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

View File

@ -84,7 +84,7 @@ namespace Microsoft.AspNetCore.StaticFiles
await FoundFile_Served(baseUrl, baseDir, requestUrl);
}
public async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl)
private async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{
@ -172,7 +172,7 @@ namespace Microsoft.AspNetCore.StaticFiles
public async Task Unknown_Match_PassesThrough(string baseUrl, string baseDir, string requestUrl) =>
await PassesThrough("VERB", baseUrl, baseDir, requestUrl);
public async Task PassesThrough(string method, string baseUrl, string baseDir, string requestUrl)
private async Task PassesThrough(string method, string baseUrl, string baseDir, string requestUrl)
{
using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
{