public void ToString() { YearlyRecurrency monthly = new YearlyRecurrency(new DateTime(2011, 5, 12), 10, 1, 4, 7); Assert.AreEqual("Every year on the 4th of Jul from 12 May 2011 for 10 occurrences", monthly.ToString()); monthly = new YearlyRecurrency(new DateTime(2011, 5, 12), new DateTime(2011, 7, 12), 2, DayOfWeek.Wednesday, DayIndex.Second, 7); Assert.AreEqual("Every 2 years on the 2nd Wed in Jul from 12 May 2011 until 12 Jul 2011", monthly.ToString()); }