public void SecondCompareToReturnsOneIfOtherIsNull() { const int expected = 1; c.Second second = new c.Second(47); c.Second other = null; Assert.AreEqual(expected, second.CompareTo(other)); }
public void SecondCompareToReturnsZeroIfOtherIsSameValue() { const int expected = 0; c.Second second = new c.Second(47); c.Second other = new c.Second(47); Assert.AreEqual(expected, second.CompareTo(other)); }
public void SecondCompareToReturnsMinusOneIfOtherIsMoreThanValue() { const int expected = -1; c.Second second = new c.Second(47); c.Second other = new c.Second(48); Assert.AreEqual(expected, second.CompareTo(other)); }
public void SecondCompareToReturnsOneIfOtherIsNotTypeOfSecond() { const int expected = 1; c.Second second = new c.Second(47); Task other = new Task(() => { }); Assert.AreEqual(expected, second.CompareTo(other)); }