Example #1
0
        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);
        }
Example #2
0
        public void BadParsesThrowException(string input)
        {
            b.Info.Flow();

            var sut = new TalkingClockSupport(ConverterChainBase.GetFullChain());

            Assert.Throws <ArgumentOutOfRangeException>(() => {
                _ = sut.ParseTime(input);
            });
        }