sdk/dotnet/test/Datasync.Common.Test/AssertEx.cs
/// <summary>
/// Asserts if the provided actual date is in between the provided start and end dates.
/// </summary>
/// <param name="start"></param>
/// <param name="end"></param>
/// <param name="actual"></param>
Asserts if the provided actual date is in between the provided start and end dates.
Asserts if the provided actual date is in between the provided start and end dates .
public static void IsBetween(DateTimeOffset start, DateTimeOffset end, DateTimeOffset actual)
        {
            Assert.True(actual >= start, $"Date {actual} is earlier than expected start date {start}");
            Assert.True(actual <= end, $"Date {actual} is later than expected end date {end}");
        }
public static void IsBetween ( DateTimeOffset start , DateTimeOffset end , DateTimeOffset actual ) { Assert . True ( actual >= start , $" Date  { actual }  is earlier than expected start date  { start } " ) ; Assert . True ( actual <= end , $" Date  { actual }  is later than expected end date  { end } " ) ; }
Asserts if the provided actual date is in between the provided start and end dates.
Asserts if the provided actual date is in between the provided start and end dates .
start
DateTimeOffset
None
end
DateTimeOffset
None
actual
DateTimeOffset
None