public void MonthCompareToReturnsOneIfOtherIsNull() { const int expected = 1; c.Month month = new c.Month(47); c.Month other = null; Assert.AreEqual(expected, month.CompareTo(other)); }
public void MonthCompareToReturnsZeroIfOtherIsSameValue() { const int expected = 0; c.Month month = new c.Month(47); c.Month other = new c.Month(47); Assert.AreEqual(expected, month.CompareTo(other)); }
public void MonthCompareToReturnsMinusOneIfOtherIsMoreThanValue() { const int expected = -1; c.Month month = new c.Month(47); c.Month other = new c.Month(48); Assert.AreEqual(expected, month.CompareTo(other)); }
public void MonthCompareToReturnsOneIfOtherIsNotTypeOfMonth() { const int expected = 1; c.Month month = new c.Month(47); Task other = new Task(() => { }); Assert.AreEqual(expected, month.CompareTo(other)); }