Exemple #1
0
        public void CorrectStringOfLeftAndRightCommandShouldReturnLeftAndRightCommand()
        {
            var leftCommandInList = Commands.GenerateOutputListOfCommands(new List <string>()
            {
                "PLACE 2,3, east Left"
            });
            LeftCommand actualLeftCommand = new LeftCommand();

            Assert.IsTrue(leftCommandInList[1].CommandAsType.GetType().Equals(actualLeftCommand.GetType()));

            var rightCommandInList = Commands.GenerateOutputListOfCommands(new List <string>()
            {
                "PLACE 2,3, east right"
            });
            RightCommand actualRightCommand = new RightCommand();

            Assert.IsTrue(rightCommandInList[1].CommandAsType.GetType().Equals(actualRightCommand.GetType()));
        }