public void NotFailWithEmptyCommand() { IEosService eosService = GetMockService(); var command = new GroupToken(eosService); var result = command.Process(new InputStack()); Assert.Null(result); }
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); }