public void TimePeriodRelationEndTouching() { DateTime start = new DateTime(2018, 1, 1); DateTime end = new DateTime(2018, 12, 31); var timePeriod = new SimpleTimeLine.TimePeriod(start, end); DateTime start1 = new DateTime(2018, 12, 31); DateTime end1 = new DateTime(2019, 2, 1); var test = new SimpleTimeLine.TimePeriod(start1, end1); Assert.Equal(PeriodRelation.EndTouching, TimePeriodCalc.GetRelation(timePeriod, test)); }
public void TimePeriodRelationAfter() { DateTime start = new DateTime(2018, 1, 1); DateTime end = new DateTime(2018, 12, 31); var timePeriod = new SimpleTimeLine.TimePeriod(start, end); DateTime start1 = new DateTime(2017, 2, 1); DateTime end1 = new DateTime(2017, 2, 20); var timePeriod1 = new SimpleTimeLine.TimePeriod(start1, end1); Assert.Equal(PeriodRelation.After, TimePeriodCalc.GetRelation(timePeriod, timePeriod1)); }