/// <summary> /// Evaluates if the datetime instance, did happen before the given dateTime. /// </summary> public static bool HappenedAfter(this DateTime @this, DateTimeRange period) { if (period == null) { throw new ArgumentNullException(nameof(period)); } return(period.HappenedAfter(@this)); }
public void Should_Happen_After_Range() { var d = new DateTimeRange(Now, OneDayAfterNow); d.HappenedAfter(OneDayAfterNow.AddHours(1)).Should().BeTrue(); }