public void does_not_overlap() { var subject = new ScheduleTimeSpan(1M, 3M); var other = new ScheduleTimeSpan(4.1M, 6M); bool overlaps = subject.Overlaps(other); Assert.IsFalse(overlaps); }
public void overlaps_end() { var subject = new ScheduleTimeSpan(1M, 3M); var other = new ScheduleTimeSpan(3M, 2M); bool overlaps = subject.Overlaps(other); Assert.IsTrue(overlaps); }
public void overlaps_when_beginning_same() { var subject = new ScheduleTimeSpan(8M, 5M); var other = new ScheduleTimeSpan(8M, 10M); bool overlaps = subject.Overlaps(other); Assert.IsTrue(overlaps); }
public void does_not_overlap_adjacent_beginning() { var subject = new ScheduleTimeSpan(2M, 3M); var other = new ScheduleTimeSpan(1M, 1M); bool overlaps = subject.Overlaps(other); Assert.IsFalse(overlaps); }