コード例 #1
0
        public void SetTerminalShouldRecognizeCharacterInSet()
        {
            var setTerminal = new SetTerminal("az");

            Assert.IsTrue(setTerminal.CanApply('a'));
            Assert.IsTrue(setTerminal.CanApply('z'));
        }
コード例 #2
0
        public void SetTerminalShouldNotRecognizeCharacterOutOfSet()
        {
            var setTerminal = new SetTerminal("az");

            Assert.IsFalse(setTerminal.CanApply('b'));
        }