public void Given_Invalid_Input_Then_Result_Should_Return_False() { // Arrange var aTime = "11:00"; // Act var result = _itemUnderTest.IsValidTime(aTime); // Assert Assert.IsFalse(result); }
public IClock ConvertTimeToBerlinClock(string time) { if (!_timeValidator.IsValidTime(time)) { throw new ArgumentException($"{time} is an invalid time", time); } var parsedTime = ParseGivenTime(time); _berlinClockContext.SetBerlinClockTime(parsedTime); return(_berlinClockContext.GetBerlinClock()); }