Fluent Assertions Documentation
FluentAssertions Assembly / 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.
    Exceptions
    ExceptionDescription
    because
    Permissions
    PermissionDescription
    because
    Example
    because
    Supported Frameworks
    because
    See Also