Exemple #1
0
        public void MinuteCompareToReturnsOneIfOtherIsNull()
        {
            const int expected = 1;

            c.Minute minute = new c.Minute(47);
            c.Minute other  = null;

            Assert.AreEqual(expected, minute.CompareTo(other));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        public void MinuteCompareToReturnsOneIfOtherIsNotTypeOfMinute()
        {
            const int expected = 1;

            c.Minute minute = new c.Minute(47);
            Task     other  = new Task(() => { });

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