public void MinuteCompareToReturnsOneIfOtherIsNull() { const int expected = 1; c.Minute minute = new c.Minute(47); c.Minute other = null; Assert.AreEqual(expected, minute.CompareTo(other)); }
public void MinuteCompareToReturnsZeroIfOtherIsSameValue() { const int expected = 0; c.Minute minute = new c.Minute(47); c.Minute other = new c.Minute(47); Assert.AreEqual(expected, minute.CompareTo(other)); }
public void MinuteCompareToReturnsMinusOneIfOtherIsMoreThanValue() { const int expected = -1; c.Minute minute = new c.Minute(47); c.Minute other = new c.Minute(48); Assert.AreEqual(expected, minute.CompareTo(other)); }
public void MinuteCompareToReturnsOneIfOtherIsNotTypeOfMinute() { const int expected = 1; c.Minute minute = new c.Minute(47); Task other = new Task(() => { }); Assert.AreEqual(expected, minute.CompareTo(other)); }