Method DoesStackTraceContainMethod
DoesStackTraceContainMethod(String)
Matches the StackTrace for a method name.
IMPORTANT: To make the tests pass in release mode, the method(s) named here must be decorated with [MethodImpl(MethodImplOptions.NoInlining)].
Declaration
public static bool DoesStackTraceContainMethod(string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | methodName |
Returns
Type | Description |
---|---|
System.Boolean |
DoesStackTraceContainMethod(String, String)
Matches the StackTrace for a particular class (not fully-qualified) and method name.
IMPORTANT: To make the tests pass in release mode, the method(s) named here must be decorated with [MethodImpl(MethodImplOptions.NoInlining)].
Declaration
public static bool DoesStackTraceContainMethod(string className, string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | |
System.String | methodName |
Returns
Type | Description |
---|---|
System.Boolean |