Esempio n. 1
0
        public void MonthCompareToReturnsOneIfOtherIsNull()
        {
            const int expected = 1;

            c.Month month = new c.Month(47);
            c.Month other = null;

            Assert.AreEqual(expected, month.CompareTo(other));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        public void MonthCompareToReturnsOneIfOtherIsNotTypeOfMonth()
        {
            const int expected = 1;

            c.Month month = new c.Month(47);
            Task    other = new Task(() => { });

            Assert.AreEqual(expected, month.CompareTo(other));
        }