Fluent Assertions Documentation
FluentAssertions.Formatting Namespace / IValueFormatter Interface / Format Method
The value to format into a human-readable representation
An object to write the textual representation to.
Contains additional information that the implementation should take into account.
Allows the formatter to recursively format any child objects.
In This Topic
    Format Method (IValueFormatter)
    In This Topic
    Returns a human-readable representation of value.
    Syntax

    Parameters

    value
    The value to format into a human-readable representation
    formattedGraph
    An object to write the textual representation to.
    context
    Contains additional information that the implementation should take into account.
    formatChild
    Allows the formatter to recursively format any child objects.
    Remarks
    DO NOT CALL Formatter.ToString directly, but use formatChild instead. This will ensure cyclic dependencies are properly detected. Also, the FormattedObjectGraph may throw an MaxLinesExceededException that must be ignored by implementations of this interface.
    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