Fluent Assertions Documentation
FluentAssertions.Specialized Namespace / NonGenericAsyncFunctionAssertions Class / NotThrowAfterAsync Method
The time after which the Func should have stopped throwing any exception.
The time between subsequent invocations of the Func.
A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
Zero or more objects to format using the placeholders in because.
In This Topic
    NotThrowAfterAsync Method (NonGenericAsyncFunctionAssertions)
    In This Topic
    Asserts that the current Func stops throwing any exception after a specified amount of time.
    Syntax

    Parameters

    waitTime
    The time after which the Func should have stopped throwing any exception.
    pollInterval
    The time between subsequent invocations of the Func.
    because
    A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
    becauseArgs
    Zero or more objects to format using the placeholders in because.
    Exceptions
    ExceptionDescription
    waitTime or pollInterval are negative.
    Remarks
    The Func is invoked. If it raises an exception, the invocation is repeated until it either stops raising any exceptions or the specified wait time is exceeded.
    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