public void ReturnsCorrectResultWhenDateIsOutsidePeriod(int year, int month, int day) { var pricingPeriod = new PricingPeriod(); pricingPeriod.StartMonth = 2; pricingPeriod.StartDay = 1; pricingPeriod.EndMonth = 3; pricingPeriod.EndDay = 31; Assert.That(pricingPeriod.ContainsDate(new DateTime(year, month, day)), Is.False); }
public void ReturnsCorrectResultWhenPeriodIsAcrossYears(int year, int month, int day) { var pricingPeriod = new PricingPeriod(); pricingPeriod.StartMonth = 11; pricingPeriod.StartDay = 1; pricingPeriod.EndMonth = 2; pricingPeriod.EndDay = 29; Assert.That(pricingPeriod.ContainsDate(new DateTime(year, month, day))); }
public void ReturnsCorrectResultWhenPeriodIsWithinYear(int year, int month, int day) { var pricingPeriod = new PricingPeriod(); pricingPeriod.StartMonth = 4; pricingPeriod.StartDay = 1; pricingPeriod.EndMonth = 8; pricingPeriod.EndDay = 31; Assert.That(pricingPeriod.ContainsDate(new DateTime(year, month, day))); }