public void ReturnFalseWhenYesterday() { var sut = new NotBeforeTodayAttribute(); var yesterday = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day - 1, 0, 0, 0); sut.IsValid(yesterday).Should().BeFalse(); }
public void ReturnFalseWhenTomorrow() { var sut = new NotBeforeTodayAttribute(); var tomorrow = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day + 1, 0, 0, 0); sut.IsValid(tomorrow).Should().BeTrue(); }
public void ReturnTrueForToday() { var sut = new NotBeforeTodayAttribute(); sut.IsValid(DateTime.Now).Should().BeTrue(); }