public void 至五與二至三沒有重疊() { var a = new DurationDto(new DateTime(2020, 2, 3), new DateTime(2020, 2, 5)); var b = new DurationDto(new DateTime(2020, 2, 2), new DateTime(2020, 2, 3)); var actual = a.IsOverlap(b); Assert.False(actual); }
public void 至五與四至四有重疊() { var a = new DurationDto(new DateTime(2020, 2, 3), new DateTime(2020, 2, 5)); var b = new DurationDto(new DateTime(2020, 2, 4), new DateTime(2020, 2, 4)); var actual = a.IsOverlap(b); Assert.True(actual); }