Skip to content

Commit 743b351

Browse files
committed
Attempt to fix SimulateLoadUnmanagedDll test on *nix.
1 parent b8be396 commit 743b351

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

PSql.Deploy.Tests/Internal/PrivateAssemblyLoadContextTests.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ public void LoadUnmanagedDll_Found()
4141
}
4242
else
4343
{
44-
Should.Throw<BadImageFormatException>(() =>
45-
{
46-
PrivateAssemblyLoadContext
47-
.Instance
48-
.SimulateLoadUnmanagedDll("Microsoft.Data.SqlClient.SNI");
49-
});
44+
PrivateAssemblyLoadContext
45+
.Instance
46+
.SimulateLoadUnmanagedDll("Microsoft.Data.SqlClient.SNI");
5047
}
5148
}
5249

0 commit comments

Comments
 (0)