Skip to content

Commit 3a795fe

Browse files
Fix test surrogate, to be squashed.
1 parent cafb53a commit 3a795fe

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/NHibernate.Test/Async/StaticProxyTest/StaticProxyFixture.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,9 @@ private static BinaryFormatter GetFormatter()
478478
#if NETFX
479479
return new BinaryFormatter();
480480
#else
481-
var selector = new SerializationHelper.SurrogateSelector();
482-
selector.AddSurrogate(
483-
typeof(CultureInfo),
484-
new StreamingContext(StreamingContextStates.All),
485-
new CultureInfoSerializationSurrogate());
486-
selector.ChainSelector(new SerializationHelper.SurrogateSelector());
487481
return new BinaryFormatter
488482
{
489-
SurrogateSelector = selector
483+
SurrogateSelector = new SerializationHelper.SurrogateSelector()
490484
};
491485
#endif
492486
}

src/NHibernate.Test/StaticProxyTest/StaticProxyFixture.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,15 +467,9 @@ private static BinaryFormatter GetFormatter()
467467
#if NETFX
468468
return new BinaryFormatter();
469469
#else
470-
var selector = new SerializationHelper.SurrogateSelector();
471-
selector.AddSurrogate(
472-
typeof(CultureInfo),
473-
new StreamingContext(StreamingContextStates.All),
474-
new CultureInfoSerializationSurrogate());
475-
selector.ChainSelector(new SerializationHelper.SurrogateSelector());
476470
return new BinaryFormatter
477471
{
478-
SurrogateSelector = selector
472+
SurrogateSelector = new SerializationHelper.SurrogateSelector()
479473
};
480474
#endif
481475
}

0 commit comments

Comments
 (0)