예제 #1
0
        public void DigitTerminalGivenNumberShouldMatch()
        {
            var digitTerminal = new DigitTerminal();

            Assert.IsTrue(digitTerminal.IsMatch('0'));
        }
예제 #2
0
        public void DigitTerminalGivenLetterShouldFailMatch()
        {
            var digitTerminal = new DigitTerminal();

            Assert.IsFalse(digitTerminal.IsMatch('a'));
        }