Skip to content

Commit fa675ce

Browse files
Remove validation of implementation specific throwing frame.
1 parent a2ad151 commit fa675ce

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/libraries/Common/tests/System/Reflection/InvokeInterpretedTests.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public static void VerifyInvokeIsUsingInterpreter_Method()
1616
Exception exInner = ex.InnerException;
1717

1818
Assert.Contains("Here", exInner.ToString());
19-
Assert.Contains(InterpretedMethodName, exInner.ToString());
2019
Assert.DoesNotContain("InvokeStub_TestClassThatThrows", exInner.ToString());
2120
}
2221

@@ -29,18 +28,9 @@ public static void VerifyInvokeIsUsingInterpreter_Constructor()
2928
Exception exInner = ex.InnerException;
3029

3130
Assert.Contains("Here", exInner.ToString());
32-
Assert.Contains(InterpretedConstructorName, exInner.ToString());
3331
Assert.DoesNotContain("InvokeStub_TestClassThatThrows", exInner.ToString());
3432
}
3533

36-
private static string InterpretedConstructorName => PlatformDetection.IsMonoRuntime ?
37-
"InterpretedInvoke_Constructor" :
38-
"System.RuntimeMethodHandle.InvokeMethod";
39-
40-
private static string InterpretedMethodName => PlatformDetection.IsMonoRuntime ?
41-
"InterpretedInvoke_Method" :
42-
"System.RuntimeMethodHandle.InvokeMethod";
43-
4434
private class TestClassThatThrows
4535
{
4636
public TestClassThatThrows()

0 commit comments

Comments
 (0)