コード例 #1
0
        public void TestStringInvertTimeRange()
        {
            DailyCalendar dailyCalendar = new DailyCalendar("1:20", "14:50");
            dailyCalendar.InvertTimeRange = true;
            Assert.IsTrue(dailyCalendar.ToString().IndexOf("inverted: True") > 0);

            dailyCalendar.InvertTimeRange = false;
            Assert.IsTrue(dailyCalendar.ToString().IndexOf("inverted: False") > 0);
        }
コード例 #2
0
        public void TestStringStartEndTimes()
        {
            DailyCalendar dailyCalendar = new DailyCalendar("1:20", "14:50");
            Assert.IsTrue(dailyCalendar.ToString().IndexOf("01:20:00:000 - 14:50:00:000") > 0);

            dailyCalendar = new DailyCalendar("1:20:1:456", "14:50:15:2");
            Assert.IsTrue(dailyCalendar.ToString().IndexOf("01:20:01:456 - 14:50:15:002") > 0);
        }