public void Adjacent_06() { var now = DateTime.Now; var sp1 = new DateRange(now, now.AddHours(3)); var sp2 = new DateRange(now.AddHours(-5), now.AddHours(-1)); Assert.False(sp1.Adjacent(sp2)); }
public void Adjacent_02() { var now = DateTime.Now; var sp1 = new DateRange(now, now.AddHours(3)); var sp2 = new DateRange(now.AddHours(-3), now); Assert.True(sp1.Adjacent(sp2)); }