Beispiel #1
0
 public void GetLocalInstant_InvalidTickOfMillisecond_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.GetLocalInstant(2010, 2, 20, 21, 57, 30, 250, 10000));
 }
Beispiel #2
0
 public void GetLocalInstant_InvalidSecond_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.GetLocalInstant(2010, 2, 20, 21, 57, 60, 250, 1234));
 }
Beispiel #3
0
 public void GetLocalInstant_29thOfFebruaryInLeapYear_DoesntThrow()
 {
     Iso.GetLocalInstant(2012, 2, 29, 21, 57, 30, 250, 1234);
 }
Beispiel #4
0
 public void GetLocalInstant_29thOfFebruaryInNonLeapYear_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.GetLocalInstant(2010, 2, 29, 21, 57, 30, 250, 1234));
 }
Beispiel #5
0
 public void GetLocalInstant_InvalidYear_Throws()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Iso.GetLocalInstant(50000, 2, 20, 21, 57, 30, 250, 1234));
 }
Beispiel #6
0
 public void GetLocalInstant_AllValues_ValidValuesDoesntThrow()
 {
     Iso.GetLocalInstant(2010, 2, 20, 21, 57, 30, 250, 1234);
 }