Skip to content

Commit 6d16aa4

Browse files
Disable serialization test when not supported
To be squashed
1 parent 587be55 commit 6d16aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NHibernate.Test/StaticProxyTest/StaticProxyFactoryFixture.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public void CanCreateProxyForClassWithInternalInterface()
3737
[Test]
3838
public void InitializedProxyStaysInitializedAfterDeserialization()
3939
{
40+
TestsContext.AssumeSystemTypeIsSerializable();
41+
4042
var factory = new StaticProxyFactory();
4143
factory.PostInstantiate(typeof(SimpleTestClass).FullName, typeof(SimpleTestClass), new HashSet<System.Type> {typeof(INHibernateProxy)}, null, null, null);
4244
var proxy = factory.GetProxy(2, null);
@@ -66,6 +68,8 @@ public void InitializedProxyStaysInitializedAfterDeserialization()
6668
[Test]
6769
public void NonInitializedProxyStaysNonInitializedAfterSerialization()
6870
{
71+
TestsContext.AssumeSystemTypeIsSerializable();
72+
6973
var factory = new StaticProxyFactory();
7074
factory.PostInstantiate(typeof(SimpleTestClass).FullName, typeof(SimpleTestClass), new HashSet<System.Type> {typeof(INHibernateProxy)}, null, null, null);
7175
var proxy = factory.GetProxy(2, null);

0 commit comments

Comments
 (0)