예제 #1
0
        public void NotFail()
        {
            var command = new PhraseToken("Test One", "TestOne");
            var result  = command.Process(new InputStack());

            Assert.Null(result);
        }
예제 #2
0
        public void ReturnGroup(string text, string value)
        {
            var stack   = new InputStack(text);
            var command = new PhraseToken(text, value);
            var result  = command.Process(stack);

            Assert.NotNull(result);
            Assert.Equal(value, result.Value);
        }