diff --git a/src/AsyncGenerator.yml b/src/AsyncGenerator.yml
index 15df51734d0..69aa2886b58 100644
--- a/src/AsyncGenerator.yml
+++ b/src/AsyncGenerator.yml
@@ -196,6 +196,8 @@
name: LinqReadonlyTestsContext
- conversion: Ignore
name: MultiThreadRunner
+ - conversion: Ignore
+ name: PeVerifier
- conversion: Ignore
hasAttributeName: IgnoreAttribute
- conversion: NewType
diff --git a/src/NHibernate.Test/Async/DynamicEntity/Interceptor/InterceptorDynamicEntity.cs b/src/NHibernate.Test/Async/DynamicEntity/Interceptor/InterceptorDynamicEntity.cs
index 41e1492f4e7..2987f3817f1 100644
--- a/src/NHibernate.Test/Async/DynamicEntity/Interceptor/InterceptorDynamicEntity.cs
+++ b/src/NHibernate.Test/Async/DynamicEntity/Interceptor/InterceptorDynamicEntity.cs
@@ -8,6 +8,7 @@
//------------------------------------------------------------------------------
+using System;
using System.Collections;
using NHibernate.Cfg;
using NUnit.Framework;
@@ -16,6 +17,7 @@ namespace NHibernate.Test.DynamicEntity.Interceptor
{
using System.Threading.Tasks;
[TestFixture]
+ [Obsolete("Require dynamic proxies")]
public class InterceptorDynamicEntityAsync : TestCase
{
protected override string MappingsAssembly
@@ -100,4 +102,4 @@ public async Task ItAsync()
session.Close();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/NHibernate.Test/Async/DynamicEntity/Tuplizer/TuplizerDynamicEntity.cs b/src/NHibernate.Test/Async/DynamicEntity/Tuplizer/TuplizerDynamicEntity.cs
index fc14a4e362d..66e93fb41d5 100644
--- a/src/NHibernate.Test/Async/DynamicEntity/Tuplizer/TuplizerDynamicEntity.cs
+++ b/src/NHibernate.Test/Async/DynamicEntity/Tuplizer/TuplizerDynamicEntity.cs
@@ -8,6 +8,7 @@
//------------------------------------------------------------------------------
+using System;
using System.Collections;
using System.Collections.Generic;
using NHibernate.Cfg;
@@ -17,6 +18,7 @@ namespace NHibernate.Test.DynamicEntity.Tuplizer
{
using System.Threading.Tasks;
[TestFixture]
+ [Obsolete("Require dynamic proxies")]
public class TuplizerDynamicEntityAsync : TestCase
{
protected override string MappingsAssembly
@@ -116,4 +118,4 @@ public async Task ItAsync()
session.Close();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifier.cs b/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifier.cs
deleted file mode 100644
index 4ade0606804..00000000000
--- a/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifier.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by AsyncGenerator.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-
-using System;
-using System.Diagnostics;
-using System.IO;
-using NUnit.Framework;
-
-namespace NHibernate.Test.DynamicProxyTests
-{
- using System.Threading.Tasks;
- public partial class PeVerifier
- {
-
- public async Task AssertIsValidAsync()
- {
- var process = new Process
- {
- StartInfo =
- {
- FileName = _peVerifyPath,
- RedirectStandardOutput = true,
- UseShellExecute = false,
- Arguments = "\"" + _assemlyLocation + "\" /VERBOSE",
- CreateNoWindow = true
- }
- };
-
- process.Start();
- var processOutput = await (process.StandardOutput.ReadToEndAsync());
- process.WaitForExit();
-
- var result = process.ExitCode + " code ";
-
- if (process.ExitCode != 0)
- Assert.Fail("PeVerify reported error(s): " + Environment.NewLine + processOutput, result);
- }
- }
-}
diff --git a/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifyFixture.cs b/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifyFixture.cs
deleted file mode 100644
index eaaead249a5..00000000000
--- a/src/NHibernate.Test/Async/DynamicProxyTests/PeVerifyFixture.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by AsyncGenerator.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Reflection.Emit;
-using NUnit.Framework;
-using NHibernate.Proxy.DynamicProxy;
-
-namespace NHibernate.Test.DynamicProxyTests
-{
- using System.Threading.Tasks;
- [TestFixture]
- public class PeVerifyFixtureAsync
- {
- private static bool wasCalled;
-
- private const string assemblyName = "peVerifyAssembly";
- private const string assemblyFileName = "peVerifyAssembly.dll";
-
- [Test]
- public Task VerifyClassWithPublicConstructorAsync()
- {
- try
- {
- var factory = new ProxyFactory(new SavingProxyAssemblyBuilder(assemblyName));
- var proxyType = factory.CreateProxyType(typeof(ClassWithPublicDefaultConstructor), null);
-
- wasCalled = false;
- Activator.CreateInstance(proxyType);
-
- Assert.That(wasCalled);
- return new PeVerifier(assemblyFileName).AssertIsValidAsync();
- }
- catch (Exception ex)
- {
- return Task.FromException