public void GetAssociatedRangeForIdentifierWithoutRangeThrowsException() { foreach (var identifier in TimeIdentifierUtil.GetYears()) { Assert.Throws <ArgumentOutOfRangeException>(() => identifier.GetAssociatedRange()); } }
public void GetYearsReturnsYears() { Assert.Equal(new[] { AcademicYear, CalendarYear, FinancialYear, TaxYear, ReportingYear }, TimeIdentifierUtil.GetYears()); }
public void TimeIdentifiersHaveAssociatedRanges() { AssertTimeIdentifiersMeetCondition(identifier => identifier.HasAssociatedRange(), _allTimeIdentifiers.Except(TimeIdentifierUtil.GetYears())); }
public void TimeIdentifiersAreYears() { AssertTimeIdentifiersMeetCondition(identifier => identifier.IsYear(), TimeIdentifierUtil.GetYears()); }