Fluent Assertions Documentation
FluentAssertions.Execution Namespace / AssertionChain Class / WithCallerPostfix Method
In This Topic
    WithCallerPostfix Method
    In This Topic
    Adds a postfix such as [0] to the caller identifier detected by the library.
    Syntax
    public AssertionChain WithCallerPostfix( 
       string postfix
    )

    Parameters

    postfix
    Remarks
    Can be used by an assertion that uses FluentAssertions.AndWhichConstraint<TParent,TSubject> to return an object or collection on which another assertion is executed, and which wants to amend the automatically detected caller identifier with a postfix.
    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