Exemplo n.º 1
0
 public void GetLocalInstant_29thOfFebruaryInLeapYear_DoesntThrow()
 {
     Iso.ValidateYearMonthDay(2012, 2, 29);
 }
Exemplo n.º 2
0
 public void GetLocalInstant_29thOfFebruaryInNonLeapYear_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.ValidateYearMonthDay(2010, 2, 29));
 }
Exemplo n.º 3
0
 public void ValidateYearMonthDay_InvalidYear_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.ValidateYearMonthDay(50000, 2, 20));
 }
Exemplo n.º 4
0
 public void GetLocalInstant_InvalidMonth_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.ValidateYearMonthDay(2010, 13, 20));
 }
Exemplo n.º 5
0
 public void ValidateYearMonthDay_AllValues_ValidValuesDoesntThrow()
 {
     Iso.ValidateYearMonthDay(20, 2, 20);
 }