More spot fixes for warnings as errors
This commit is contained in:
parent
40e7fcc9ba
commit
ce1f813a82
|
|
@ -113,7 +113,7 @@ namespace Microsoft.AspNet.Mvc.Core.Test
|
||||||
[InlineData("Put")]
|
[InlineData("Put")]
|
||||||
[InlineData("RPCMethod")]
|
[InlineData("RPCMethod")]
|
||||||
[InlineData("RPCMethodWithHttpGet")]
|
[InlineData("RPCMethodWithHttpGet")]
|
||||||
public async Task NonActionAttribute_ActionNotReachable(string actionName)
|
public void NonActionAttribute_ActionNotReachable(string actionName)
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var actionDescriptorProvider = GetActionDescriptorProvider(_actionDiscoveryConventions);
|
var actionDescriptorProvider = GetActionDescriptorProvider(_actionDiscoveryConventions);
|
||||||
|
|
|
||||||
|
|
@ -11,31 +11,39 @@ namespace Microsoft.AspNet.Mvc.Core.Test
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning disable 1998
|
||||||
public async Task TaskAction(int i, string s)
|
public async Task TaskAction(int i, string s)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 1998
|
||||||
|
|
||||||
|
#pragma warning disable 1998
|
||||||
public async Task<int> TaskValueTypeAction(int i, string s)
|
public async Task<int> TaskValueTypeAction(int i, string s)
|
||||||
{
|
{
|
||||||
Console.WriteLine(s);
|
Console.WriteLine(s);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 1998
|
||||||
|
|
||||||
|
#pragma warning disable 1998
|
||||||
public async Task<Task<int>> TaskOfTaskAction(int i, string s)
|
public async Task<Task<int>> TaskOfTaskAction(int i, string s)
|
||||||
{
|
{
|
||||||
return TaskValueTypeAction(i, s);
|
return TaskValueTypeAction(i, s);
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 1998
|
||||||
|
|
||||||
public Task<int> TaskValueTypeActionWithoutAsync(int i, string s)
|
public Task<int> TaskValueTypeActionWithoutAsync(int i, string s)
|
||||||
{
|
{
|
||||||
return TaskValueTypeAction(i, s);
|
return TaskValueTypeAction(i, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning disable 1998
|
||||||
public async Task<int> TaskActionWithException(int i, string s)
|
public async Task<int> TaskActionWithException(int i, string s)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException("Not Implemented Exception");
|
throw new NotImplementedException("Not Implemented Exception");
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 1998
|
||||||
|
|
||||||
public Task<int> TaskActionWithExceptionWithoutAsync(int i, string s)
|
public Task<int> TaskActionWithExceptionWithoutAsync(int i, string s)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue