public void TestCase3() { var turtleCommand = new TurtleCommand(5, 5); turtleCommand.Place(1, 2, Direction.East); turtleCommand.Move(); turtleCommand.Move(); turtleCommand.Left(); turtleCommand.Move(); var report = turtleCommand.Report(); Assert.AreEqual(report.Item1, 3); Assert.AreEqual(report.Item2, 3); Assert.AreEqual(report.Item3, Direction.North); }
public void TestCase1() { var turtleCommand = new TurtleCommand(5, 5); turtleCommand.Place(0, 0, Direction.North); turtleCommand.Move(); var report = turtleCommand.Report(); Assert.AreEqual(report.Item1, 0); Assert.AreEqual(report.Item2, 1); Assert.AreEqual(report.Item3, Direction.North); }