Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit cf507e7

Browse files
stephentoubkarelz
authored andcommitted
Fix LoadFrom_EmptyAssemblyFile_ThrowsArgumentException test
1 parent e7e77c0 commit cf507e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Runtime/tests/System/Reflection/AssemblyTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ public void LoadFrom_NullAssemblyFile_ThrowsArgumentNullException()
425425
[SkipOnTargetFramework(TargetFrameworkMonikers.UapAot, "Assembly.LoadFrom() not supported on UapAot")]
426426
public void LoadFrom_EmptyAssemblyFile_ThrowsArgumentException()
427427
{
428-
AssertExtensions.Throws<ArgumentException>(null, (() => Assembly.LoadFrom("")));
429-
AssertExtensions.Throws<ArgumentException>(null, (() => Assembly.UnsafeLoadFrom("")));
428+
Assert.Throws<ArgumentException>((() => Assembly.LoadFrom("")));
429+
Assert.Throws<ArgumentException>((() => Assembly.UnsafeLoadFrom("")));
430430
}
431431

432432
[Fact]

0 commit comments

Comments
 (0)