/// <summary> /// Determines whether the actual date time is close to an expected value within a given within. /// </summary> /// <param name="check">The fluent check to be extended.</param> /// <param name="expected">The expected value.</param> /// <param name="within">The within.</param> /// <returns>A continuation check.</returns> public static ICheckLink <ICheck <DateTime> > IsCloseTo(this ICheck <DateTime> check, DateTime expected, TimeSpan within) { return(check.IsCloseTo(expected, Duration.FromTimeSpan(within))); }