Fluent Assertions Documentation
FluentAssertions.Primitives Namespace / DateTimeOffsetAssertions<TAssertions> Class / BeWithin Method
The amount of time that the current System.DateTimeOffset should be within another System.DateTimeOffset.
In This Topic
    BeWithin Method (DateTimeOffsetAssertions<TAssertions>)
    In This Topic
    Returns a DateTimeOffsetRangeAssertions<TAssertions> object that can be used to assert that the current System.DateTimeOffset is within the specified timeSpan compared to another System.DateTimeOffset.
    Syntax

    Parameters

    timeSpan
    The amount of time that the current System.DateTimeOffset should be within another System.DateTimeOffset.
    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