Skip to content

Commit 9ccea56

Browse files
committed
NH-3807 - Exclude tests affected by changed optimizations for [Lightweight Functions]
1 parent 482d7b7 commit 9ccea56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NHibernate.Test/NHSpecificTest/NH3119/FixtureByCode.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ protected override void OnSetUp()
4242
Assert.Ignore("Test only works with reflection optimization enabled");
4343
}
4444

45+
#if RELEASE
46+
Assert.Ignore("On newer .NET frameworks, NHibernate.Bytecode.Lightweight.ReflectionOptimizer.CreateInstance is optimized to a [Lightweight Function] in release mode.");
47+
#endif
48+
4549
using (ISession session = OpenSession())
4650
using (ITransaction transaction = session.BeginTransaction())
4751
{
@@ -65,6 +69,7 @@ protected override void OnTearDown()
6569
}
6670
}
6771

72+
6873
[Test]
6974
public void PocoComponentTuplizer_Instantiate_UsesReflectonOptimizer()
7075
{

0 commit comments

Comments
 (0)