public void ParseInputAsTime(string text, int expectedHours, int expectedMins) { b.Info.Flow(); var sut = new TalkingClockSupport(ConverterChainBase.GetFullChain()); var result = sut.ParseTime(text); Assert.Equal(expectedMins, result.Minute); Assert.Equal(expectedHours, result.Hour); }
public void BadParsesThrowException(string input) { b.Info.Flow(); var sut = new TalkingClockSupport(ConverterChainBase.GetFullChain()); Assert.Throws <ArgumentOutOfRangeException>(() => { _ = sut.ParseTime(input); }); }