public void WithMonthOfYear_MakingDayInvalid()
 {
     LocalDate start = new LocalDate(2010, 3, 30);
     LocalDate end = start.WithMonthOfYear(2);
     Assert.AreEqual(new LocalDate(2010, 2, 28), end);
 }
 public void WithMonthOfYear_Simple()
 {
     LocalDate start = new LocalDate(2010, 3, 15);
     LocalDate end = start.WithMonthOfYear(8);
     Assert.AreEqual(new LocalDate(2010, 8, 15), end);
 }