public void ContainsPeriodTest() { var schoolDay = new SchoolDay(); var chain = new TimePeriodChain(schoolDay); var timeRange = new TimeRange(schoolDay.Lesson1.Start, schoolDay.Lesson1.End); chain.Contains(timeRange).Should().Be.False(); chain.ContainsPeriod(timeRange).Should().Be.True(); }
public void ContainsPeriodTest() { DateTime now = ClockProxy.Clock.Now; SchoolDay schoolDay = new SchoolDay(now); TimePeriodChain timePeriods = new TimePeriodChain(schoolDay); TimeRange timeRange = new TimeRange(schoolDay.Lesson1.Start, schoolDay.Lesson1.End); Assert.False(timePeriods.Contains(timeRange)); Assert.True(timePeriods.ContainsPeriod(timeRange)); } // ContainsPeriodTest