コード例 #1
0
        public void TestAnnualCalendarSerialization()
        {
            AnnualCalendar annualCalendar = new AnnualCalendar();
            DateTime       day            = new DateTime(2011, 12, 20, 0, 0, 0);

            annualCalendar.SetDayExcluded(day, true);
            AnnualCalendar clone = annualCalendar.DeepClone();

            Assert.IsTrue(clone.IsDayExcluded(day));
        }