Exemple #1
0
        public void ПроверкаAddDays3()
        {
            var myDate = new MyDate(11, 05, 2015);

            myDate.AddDays(-130);

            Assert.AreEqual(myDate.Day, 1);
            Assert.AreEqual(myDate.Month, 1);
            Assert.AreEqual(myDate.Year, 2015);
        }
Exemple #2
0
        public void ПроверкаAddDays2()
        {
            var myDate = new MyDate(01, 01, 2015);

            myDate.AddDays(130);

            Assert.AreEqual(myDate.Day, 11);
            Assert.AreEqual(myDate.Month, 5);
            Assert.AreEqual(myDate.Year, 2015);
        }