コード例 #1
0
ファイル: DailyTests.cs プロジェクト: sourceit/Recurrency.net
        public void ToStringSuffix()
        {
            DailyRecurrency daily = new DailyRecurrency(new DateTime(2011, 5, 12), 10, DailyType.Weekdays, 1);

            Assert.AreEqual("from 12 May 2011 for 10 occurrences", daily.ToStringSuffix());

            daily = new DailyRecurrency(new DateTime(2011, 5, 12), new DateTime(2011, 7, 12), DailyType.EveryXDays, 2);
            Assert.AreEqual("from 12 May 2011 until 12 Jul 2011", daily.ToStringSuffix());
        }