public void IsPastYear_ReturnsTrue_ForPastYear() { //Arrange var start = new DateTime(2001, 01, 01); var end = new DateTime(2002, 01, 01); var target = new FinancialYear { Start = start, End = end }; //Act var result = target.IsPastYear(); //Assert result.Should().BeTrue(); }
public void IsPastYear_ReturnsFalse_ForFutureYear() { //Arrange var nextYear = DateTime.UtcNow.Year + 1; var yearAfterNext = nextYear + 1; var start = new DateTime(nextYear, 01, 01); var end = new DateTime(yearAfterNext, 01, 01); var target = new FinancialYear { Start = start, End = end }; //Act var result = target.IsPastYear(); //Assert result.Should().BeFalse(); }