Fluent Assertions Documentation
FluentAssertions.Execution Namespace / AssertionChain Class / OverrideCallerIdentifier Method
In This Topic
    OverrideCallerIdentifier Method
    In This Topic
    Allows overriding the caller identifier for the next call to one of the `FailWith` overloads instead of relying on the automatic behavior that extracts the variable names from the C# code.
    Syntax
    public void OverrideCallerIdentifier( 
       Func<string> getCallerIdentifier
    )

    Parameters

    getCallerIdentifier
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also