Esempio n. 1
0
        public void TestClone()
        {
            CronCalendar calendar = new CronCalendar("0/15 * * * * ?");
            CronCalendar clone    = (CronCalendar)calendar.Clone();

            Assert.AreEqual(calendar.CronExpression, clone.CronExpression);
        }
        public void TestClone()
        {
            string       expr     = string.Format("0/15 * * * * ?");
            CronCalendar calendar = new CronCalendar(expr);
            CronCalendar clone    = (CronCalendar)calendar.Clone();

            Assert.AreEqual(calendar.CronExpression, clone.CronExpression);
        }