public void TimeLineIsDateOnTimeLineFalse() { var timePeriodCollection = EmploymentTimeLine(2018); var timeLine = new SimpleTimeLine.TimeLine(timePeriodCollection); Assert.False(timeLine.IsOnTimeLine(new DateTime(1998, 1, 1))); }
public void TimeLineObject() { var timePeriodCollection = EmploymentTimeLine(2018); var timeLine = new SimpleTimeLine.TimeLine(timePeriodCollection);; Assert.IsType <SimpleTimeLine.TimeLine>(timeLine); }
public void TimeLineIsTimePeriodOnTimeLine() { var timePeriodCollection = EmploymentTimeLine(2018); var timeLine = new SimpleTimeLine.TimeLine(timePeriodCollection); var period = new TimePeriod(new DateTime(2018, 1, 1), new DateTime(2018, 1, 31)); Assert.True(timeLine.IsOnTimeLine(period)); }
public void TimeLinePeriodIntersectsFalse() { var timePeriodCollection = EmploymentTimeLine(2018); var timeLine = new SimpleTimeLine.TimeLine(timePeriodCollection); var period = new TimePeriod(new DateTime(2018, 6, 1), new DateTime(2018, 6, 30)); Assert.False(timeLine.IntersectsWith(period)); }