Fluent Assertions Documentation
FluentAssertions.Execution Namespace / AssertionChain Class / BecauseOf Method / BecauseOf(Reason) Method
An object containing a formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed, as well as zero or more objects to format the placeholders. If the phrase does not start with the word because, it is prepended automatically.explaining why the assertion is needed.
In This Topic
    BecauseOf(Reason) Method
    In This Topic
    Adds an explanation of why the assertion is supposed to succeed to the scope.
    Syntax
    public AssertionChain BecauseOf( 
       Reason reason
    )

    Parameters

    reason
    An object containing a formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed, as well as zero or more objects to format the placeholders. If the phrase does not start with the word because, it is prepended automatically.explaining why the assertion is needed.
    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