public void LessThan_WhenLess_ReturnsTrue() { _dayTime = _dayTime.CreateTimestamp(1440); _dayTime.Next(); DayTime lessDay = new DayTime((int)DayTime.Days.Sun, 0); DayTime lessTime = new DayTime((int)DayTime.Days.Mon, 0); Assert.IsTrue(lessDay.LessThan(_dayTime)); Assert.IsFalse(_dayTime.LessThan(lessDay)); Assert.IsTrue(lessTime.LessThan(_dayTime)); Assert.IsFalse(_dayTime.LessThan(lessTime)); Assert.IsFalse(_dayTime.Equals(lessDay)); Assert.IsFalse(_dayTime.Equals(lessTime)); }
public void Equals_WhenEqual_ReturnsTrue() { DayTime other = new DayTime(); Assert.IsTrue(_dayTime.Equals(other)); Assert.IsFalse(_dayTime.LessThan(other)); }