Exemplo n.º 1
0
        public void NotFailWithEmptyCommand()
        {
            IEosService eosService = GetMockService();

            var command = new GroupToken(eosService);
            var result  = command.Process(new InputStack());

            Assert.Null(result);
        }
Exemplo n.º 2
0
        public void ReturnGroup(string text, decimal groupNumber)
        {
            IEosService eosService = GetMockService();
            var         stack      = new InputStack(text);

            var command = new GroupToken(eosService);
            var result  = command.Process(stack);

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