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); } }
public void ThenTheClockShouldLookLike(string theExpectedBerlinClockOutput) { Assert.AreEqual(BerlinClockTimeConverter.ToBerlinClockTime(theTime), theExpectedBerlinClockOutput); }