Skip to content

Commit 3007cb2

Browse files
committed
Fix PolicyException on .NET 3.5 unit tests.
1 parent bb409c0 commit 3007cb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/MsgPack.UnitTest/GenericExceptionTester.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ private static PermissionSet GetDefaultInternetZoneSandbox()
300300
);
301301
permissions.AddPermission(
302302
new SecurityPermission(
303-
SecurityPermissionFlag.Execution
303+
SecurityPermissionFlag.Execution |
304+
SecurityPermissionFlag.SkipVerification // for unsafe code
304305
)
305306
);
306307
permissions.AddPermission(

0 commit comments

Comments
 (0)