diff --git a/build/dependencies.props b/build/dependencies.props
index 4e451e9dc7..a5fb570275 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -7,7 +7,8 @@
2.0.0-*
2.0.0-*
2.0.0-*
- 15.3.0-*
- 2.3.0-beta2-*
+ 15.3.0
+ 0.6.1
+ 2.3.0-beta4-build3742
diff --git a/test/Microsoft.AspNetCore.Authentication.Core.Test/TokenExtensionTests.cs b/test/Microsoft.AspNetCore.Authentication.Core.Test/TokenExtensionTests.cs
index 21b78e5276..7215d526e9 100644
--- a/test/Microsoft.AspNetCore.Authentication.Core.Test/TokenExtensionTests.cs
+++ b/test/Microsoft.AspNetCore.Authentication.Core.Test/TokenExtensionTests.cs
@@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.Authentication
Assert.Null(props.GetTokenValue("One"));
Assert.Null(props.GetTokenValue("Two"));
Assert.Null(props.GetTokenValue("Three"));
- Assert.Equal(1, props.GetTokens().Count());
+ Assert.Single(props.GetTokens());
}
[Fact]
diff --git a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/PathStringTests.cs b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/PathStringTests.cs
index ad070afa02..2d3c6e23f0 100644
--- a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/PathStringTests.cs
+++ b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/PathStringTests.cs
@@ -138,8 +138,7 @@ namespace Microsoft.AspNetCore.Http
var source = new PathString(sourcePath);
var test = new PathString(testPath);
- PathString remaining;
- var result = source.StartsWithSegments(test, out remaining);
+ var result = source.StartsWithSegments(test, out var remaining);
Assert.Equal(expectedResult, result);
}
@@ -181,26 +180,33 @@ namespace Microsoft.AspNetCore.Http
var source = new PathString(sourcePath);
var test = new PathString(testPath);
- PathString remaining;
- var result = source.StartsWithSegments(test, comparison, out remaining);
+ var result = source.StartsWithSegments(test, comparison, out var remaining);
Assert.Equal(expectedResult, result);
}
[Theory]
- [InlineData("unreserved", "/abc123.-_~", "/abc123.-_~")]
- [InlineData("colon", "/:", "/:")]
- [InlineData("at", "/@", "/@")]
- [InlineData("sub-delims", "/!$&'()*+,;=", "/!$&'()*+,;=")]
- [InlineData("reserved", "/?#[]", "/%3F%23%5B%5D")]
- [InlineData("pct-encoding", "/单行道", "/%E5%8D%95%E8%A1%8C%E9%81%93")]
- [InlineData("mixed1", "/index/单行道=(x*y)[abc]", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D")]
- [InlineData("mixed2", "/index/单行道=(x*y)[abc]_", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D_")]
- [InlineData("encoded", "/http%3a%2f%2f[foo]%3A5000/", "/http%3a%2f%2f%5Bfoo%5D%3A5000/")]
- [InlineData("encoded", "/http%3a%2f%2f[foo]%3A5000/%", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%25")]
- [InlineData("encoded", "/http%3a%2f%2f[foo]%3A5000/%2", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%252")]
- [InlineData("encoded", "/http%3a%2f%2f[foo]%3A5000/%2F", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%2F")]
- public void ToUriComponentEscapeCorrectly(string category, string input, string expected)
+ // unreserved
+ [InlineData("/abc123.-_~", "/abc123.-_~")]
+ // colon
+ [InlineData("/:", "/:")]
+ // at
+ [InlineData("/@", "/@")]
+ // sub-delims
+ [InlineData("/!$&'()*+,;=", "/!$&'()*+,;=")]
+ // reserved
+ [InlineData("/?#[]", "/%3F%23%5B%5D")]
+ // pct-encoding
+ [InlineData("/单行道", "/%E5%8D%95%E8%A1%8C%E9%81%93")]
+ // mixed
+ [InlineData("/index/单行道=(x*y)[abc]", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D")]
+ [InlineData("/index/单行道=(x*y)[abc]_", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D_")]
+ // encoded
+ [InlineData("/http%3a%2f%2f[foo]%3A5000/", "/http%3a%2f%2f%5Bfoo%5D%3A5000/")]
+ [InlineData("/http%3a%2f%2f[foo]%3A5000/%", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%25")]
+ [InlineData("/http%3a%2f%2f[foo]%3A5000/%2", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%252")]
+ [InlineData("/http%3a%2f%2f[foo]%3A5000/%2F", "/http%3a%2f%2f%5Bfoo%5D%3A5000/%2F")]
+ public void ToUriComponentEscapeCorrectly(string input, string expected)
{
var path = new PathString(input);
diff --git a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/UseMiddlewareTest.cs b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/UseMiddlewareTest.cs
index 7bf6ad4a74..342aa54a06 100644
--- a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/UseMiddlewareTest.cs
+++ b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/UseMiddlewareTest.cs
@@ -227,8 +227,8 @@ namespace Microsoft.AspNetCore.Http
Assert.True(Assert.IsType(context.Items["after"]));
Assert.NotNull(middlewareFactory.Created);
Assert.NotNull(middlewareFactory.Released);
- Assert.IsType(typeof(Middleware), middlewareFactory.Created);
- Assert.IsType(typeof(Middleware), middlewareFactory.Released);
+ Assert.IsType(middlewareFactory.Created);
+ Assert.IsType(middlewareFactory.Released);
Assert.Same(middlewareFactory.Created, middlewareFactory.Released);
}
diff --git a/test/Microsoft.AspNetCore.Http.Tests/DefaultHttpContextTests.cs b/test/Microsoft.AspNetCore.Http.Tests/DefaultHttpContextTests.cs
index 6463880f6e..33f73cf191 100644
--- a/test/Microsoft.AspNetCore.Http.Tests/DefaultHttpContextTests.cs
+++ b/test/Microsoft.AspNetCore.Http.Tests/DefaultHttpContextTests.cs
@@ -84,21 +84,21 @@ namespace Microsoft.AspNetCore.Http
{
var context = new DefaultHttpContext(new FeatureCollection());
Assert.NotNull(context.User);
- Assert.Equal(1, context.User.Identities.Count());
+ Assert.Single(context.User.Identities);
Assert.True(object.ReferenceEquals(context.User, context.User));
Assert.False(context.User.Identity.IsAuthenticated);
Assert.True(string.IsNullOrEmpty(context.User.Identity.AuthenticationType));
context.User = null;
Assert.NotNull(context.User);
- Assert.Equal(1, context.User.Identities.Count());
+ Assert.Single(context.User.Identities);
Assert.True(object.ReferenceEquals(context.User, context.User));
Assert.False(context.User.Identity.IsAuthenticated);
Assert.True(string.IsNullOrEmpty(context.User.Identity.AuthenticationType));
context.User = new ClaimsPrincipal();
Assert.NotNull(context.User);
- Assert.Equal(0, context.User.Identities.Count());
+ Assert.Empty(context.User.Identities);
Assert.True(object.ReferenceEquals(context.User, context.User));
Assert.Null(context.User.Identity);
diff --git a/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj b/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
index 47fc0bafde..5ec662d085 100644
--- a/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
+++ b/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
@@ -15,6 +15,7 @@
+
diff --git a/test/Microsoft.AspNetCore.WebUtilities.Tests/HttpRequestStreamReaderTest.cs b/test/Microsoft.AspNetCore.WebUtilities.Tests/HttpRequestStreamReaderTest.cs
index ee4d2f2bdc..062342fa4c 100644
--- a/test/Microsoft.AspNetCore.WebUtilities.Tests/HttpRequestStreamReaderTest.cs
+++ b/test/Microsoft.AspNetCore.WebUtilities.Tests/HttpRequestStreamReaderTest.cs
@@ -283,7 +283,8 @@ namespace Microsoft.AspNetCore.WebUtilities.Test
return new MemoryStream(data.ToArray());
}
- private static IEnumerable