コード例 #1
0
 public void ThereIsAFormatError()
 {
     try
     {
         BerlinClockTimeConverter.ToBerlinClockTime(theTime);
         Assert.Fail("Expected exception was not thrown.");
     }
     catch (FormatException) { }
     catch (Exception e)
     {
         Assert.Fail("Unexpected exception was thrown. " + e);
     }
 }
コード例 #2
0
 public void ThenTheClockShouldLookLike(string theExpectedBerlinClockOutput)
 {
     Assert.AreEqual(BerlinClockTimeConverter.ToBerlinClockTime(theTime), theExpectedBerlinClockOutput);
 }