Turning on warnings as errors for routing
This commit is contained in:
parent
4a51ced5de
commit
1d4ceef81b
|
|
@ -28,8 +28,8 @@
|
|||
<Compile Include="DelegateRouteEndpoint.cs" />
|
||||
<Compile Include="DictionaryExtensions.cs" />
|
||||
<Compile Include="PrefixRoute.cs" />
|
||||
<Compile Include="RouteCollectionBuilderExtensions.cs" />
|
||||
<Compile Include="RouteBuilderExtensions.cs" />
|
||||
<Compile Include="Startup.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\AspNet\Microsoft.Web.AspNet.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Http": "0.1-alpha-*",
|
||||
"Microsoft.Framework.DependencyInjection" : "0.1-alpha-*"
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ namespace Microsoft.AspNet.Routing.Tests
|
|||
|
||||
target
|
||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
||||
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||
.Returns(Task.FromResult<object>(null))
|
||||
.Verifiable();
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ namespace Microsoft.AspNet.Routing.Tests
|
|||
|
||||
target
|
||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
||||
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||
.Returns(Task.FromResult<object>(null))
|
||||
.Verifiable();
|
||||
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ namespace Microsoft.AspNet.Routing.Template.Tests
|
|||
|
||||
target
|
||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
||||
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||
.Returns(Task.FromResult<object>(null));
|
||||
|
||||
return target.Object;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
||||
"Microsoft.AspNet.Routing" : "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue