示例#1
0
        public void CompareTo_WithLaterDate_ReturnsNegative1()
        {
            var date1 = new Date(2009, 11, 17);

            var date2 = new Date(2009, 11, 18);
            Assert.AreEqual(-1, date1.CompareTo(date2));
        }
示例#2
0
        public void CompareTo_WithEarlierDate_Returns1()
        {
            var date1 = new Date(2009, 11, 17);

            var date2 = new Date(2009, 11, 18);
            Assert.AreEqual(1, date2.CompareTo(date1));
        }
示例#3
0
        public void CompareTo_WithTheSameDates_Returns0()
        {
            var date1 = new Date(2009, 11, 17);

            var date2 = new Date(2009, 11, 17);
              Assert.AreEqual(0,date1.CompareTo(date2));
        }