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

Commit 8e4a84a

Browse files
committed
add finally
1 parent 9c7a9d1 commit 8e4a84a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ public static void NullExceptionsNoNullPointerException()
2424
{
2525
foundRtleException = true;
2626
}
27-
Assert.True(foundRtleException);
27+
finally
28+
{
29+
Assert.True(foundRtleException);
30+
}
2831
}
2932

3033
[Fact]
@@ -40,7 +43,10 @@ public static void NullArgumentsNoNullPointerException()
4043
{
4144
foundRtleException = true;
4245
}
43-
Assert.True(foundRtleException);
46+
finally
47+
{
48+
Assert.True(foundRtleException);
49+
}
4450
}
4551
}
4652
}

0 commit comments

Comments
 (0)