Fluent Assertions Documentation
FluentAssertions.Formatting Namespace / FormattingOptions Class / MaxDepth Property
In This Topic
    MaxDepth Property
    In This Topic
    Determines the depth until which the library should try to render an object graph.
    Syntax
    public int MaxDepth {get; set;}

    Property Value

    A depth of 1 will only the display the members of the root object.
    Remarks
    This property is not thread-safe and should not be modified through FluentAssertions.AssertionConfiguration from within a unit test. See the docs on how to safely use it.
    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