parent
f0c2d7ed25
commit
ca62719f9d
|
|
@ -8,6 +8,7 @@ using System.Reflection;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Diagnostics.Entity.Views;
|
using Microsoft.AspNet.Diagnostics.Entity.Views;
|
||||||
|
using Microsoft.AspNet.Testing.xunit;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Data.Entity
|
namespace Microsoft.Data.Entity
|
||||||
|
|
@ -25,7 +26,8 @@ namespace Microsoft.Data.Entity
|
||||||
protected const BindingFlags AnyInstance
|
protected const BindingFlags AnyInstance
|
||||||
= BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
|
= BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact(Skip = "Skipping until we update to mono")]
|
||||||
|
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
|
||||||
public void Public_inheritable_apis_should_be_virtual()
|
public void Public_inheritable_apis_should_be_virtual()
|
||||||
{
|
{
|
||||||
var nonVirtualMethods
|
var nonVirtualMethods
|
||||||
|
|
@ -47,7 +49,8 @@ namespace Microsoft.Data.Entity
|
||||||
"\r\n-- Missing virtual APIs --\r\n" + string.Join("\r\n", nonVirtualMethods));
|
"\r\n-- Missing virtual APIs --\r\n" + string.Join("\r\n", nonVirtualMethods));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact(Skip = "Skipping until we update to mono")]
|
||||||
|
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
|
||||||
public void Public_api_arguments_should_have_not_null_annotation()
|
public void Public_api_arguments_should_have_not_null_annotation()
|
||||||
{
|
{
|
||||||
var parametersMissingAttribute
|
var parametersMissingAttribute
|
||||||
|
|
@ -74,7 +77,8 @@ namespace Microsoft.Data.Entity
|
||||||
"\r\n-- Missing NotNull annotations --\r\n" + string.Join("\r\n", parametersMissingAttribute));
|
"\r\n-- Missing NotNull annotations --\r\n" + string.Join("\r\n", parametersMissingAttribute));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact(Skip = "Skipping until we update to mono")]
|
||||||
|
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
|
||||||
public void Async_methods_should_have_overload_with_cancellation_token_and_end_with_async_suffix()
|
public void Async_methods_should_have_overload_with_cancellation_token_and_end_with_async_suffix()
|
||||||
{
|
{
|
||||||
var asyncMethods
|
var asyncMethods
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"EntityFramework.InMemory": "7.0.0-*",
|
"EntityFramework.InMemory": "7.0.0-*",
|
||||||
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-*",
|
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-*",
|
||||||
|
"Microsoft.AspNet.Testing": "1.0.0-*",
|
||||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||||
},
|
},
|
||||||
"compile": [ "../Shared/ApiConsistencyTestBase.cs", "../Shared/TestHelpers.cs" ],
|
"compile": [ "../Shared/ApiConsistencyTestBase.cs", "../Shared/TestHelpers.cs" ],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue