Class StackTraceHelper
LUCENENET specific class to normalize stack trace behavior between different .NET Framework and .NET Standard 1.x,
which did not support the StackTrace class.
Inheritance
StackTraceHelper
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class StackTraceHelper
Methods
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 |
string |
methodName |
|
Returns
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
Returns