Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
UnitySerializationHolder deserialization test added
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer committed Sep 11, 2017
1 parent ea11eec commit d9161ec
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ private static void ValidateAndRoundtrip(object obj, string[] blobs, bool isEqua
}
}

[Fact]
public void UnitySerializationHolderWithAssemblySingleton()
{
const string UnitySerializationHolderAssemblyBase64String = "AAEAAAD/////AQAAAAAAAAAEAQAAAB9TeXN0ZW0uVW5pdHlTZXJpYWxpemF0aW9uSG9sZGVyAwAAAAREYXRhCVVuaXR5VHlwZQxBc3NlbWJseU5hbWUBAAEIBgIAAABLbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BgAAAAkCAAAACw==";
AssertExtensions.ThrowsIf<ArgumentException>(!PlatformDetection.IsFullFramework,
() => BinaryFormatterHelpers.FromBase64String(UnitySerializationHolderAssemblyBase64String));
}

[Fact]
public void ArraySegmentDefaultCtor()
{
Expand Down

0 comments on commit d9161ec

Please sign in to comment.