示例#1
0
        public void CorrectStringOfPlaceCommandShouldReturnPlaceCommand()
        {
            var placeCommandInList = Commands.GenerateOutputListOfCommands(new List <string>()
            {
                "PLACE 4,2, West"
            });
            PlaceCommand actualPlaceCommand = new PlaceCommand(new Route(new Position(4, 2), Direction.WEST));

            Assert.IsTrue(placeCommandInList[0].CommandAsType.GetType().Equals(actualPlaceCommand.GetType()));
        }