Exemplo n.º 1
0
        public void TestCompare()
        {
            UniversalTime date0 = new UniversalTime(1974, 8, 16, 0, 30, 0);
            UniversalTime date1 = new UniversalTime(1974, 8, 10, 0, 30, 0);
            UniversalTime date2 = new UniversalTime(1974, 8, 20, 0, 30, 0);

            Assert.AreEqual(0, UniversalTime.Compare(date0, date0));
            Assert.AreEqual(6, UniversalTime.Compare(date0, date1));
            Assert.AreEqual(-4, UniversalTime.Compare(date0, date2));
        }