예제 #1
0
        public void CompareToEqualsTest()
        {
            // arrange
            Moment t1 = new Moment(13, 29, 44);
            Moment t2 = new Moment(13, 29, 44);

            // act
            int result = t1.CompareTo(t2);

            // assert
            Assert.AreEqual(result, 0);
        }
예제 #2
0
        public void CompareToGreatherThanTest()
        {
            // arrange
            Moment t1 = new Moment(12, 23, 44);
            Moment t2 = new Moment(12, 15, 44);

            // act
            int result = t1.CompareTo(t2);

            // assert
            Assert.AreEqual(result, 1);
        }