Beispiel #1
0
        public void КонвертацияДатыИзДней3()
        {
            var myDate1 = new MyDate(29, 02, 2016);
            var days1   = myDate1.GetDaysCount();
            var myDate2 = MyDate.GetDateByDays(days1);

            Assert.AreEqual(myDate1.Day, myDate2.Day);
            Assert.AreEqual(myDate1.Month, myDate2.Month);
            Assert.AreEqual(myDate1.Year, myDate2.Year);
        }