Fluent Assertions Documentation
FluentAssertions.Formatting Namespace / FormattingOptions Class / AddFormatter Method
A custom implementation of IValueFormatter
In This Topic
    AddFormatter Method (FormattingOptions)
    In This Topic
    Ensures a scoped formatter is included in the chain, which is executed before the static custom formatters and the default formatters. This also lasts only for the current FluentAssertions.Execution.AssertionScope until disposal.
    Syntax
    public void AddFormatter( 
       IValueFormatter formatter
    )

    Parameters

    formatter
    A custom implementation of IValueFormatter
    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