public void TestParseCommandTop() { PlayField field = new PlayField(3, 4); CommandParser parser = new CommandParser(); Command command = parser.ParseCommand("Top", field); Assert.AreEqual(Command.Top, command); }
public void TestParseCommandExitFirstLetterLowerCase() { PlayField field = new PlayField(3, 4); CommandParser parser = new CommandParser(); Command command = parser.ParseCommand("exit", field); Assert.AreEqual(Command.Invalid, command); }
public void TestParseCommandRestart() { PlayField field = new PlayField(3, 4); CommandParser parser = new CommandParser(); Command command = parser.ParseCommand("Restart", field); Assert.AreEqual(Command.Restart, command); }
public void TestParseCommandCoordinateForParsing() { PlayField field = new PlayField(3, 4); CommandParser parser = new CommandParser(); Command command = parser.ParseCommand("2 3", field); Assert.AreEqual(Command.CoordinateForParsing, command); }