Show / Hide Table of Contents

    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
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class StackTraceHelper : object

    Methods

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)