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
System.Object
    StackTraceHelper
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Util
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class StackTraceHelper
  Methods
| Improve this Doc View SourceDoesStackTraceContainMethod(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 |