public void VerifyDirectionsOnRight(DirectionEnum iniitialDirection, DirectionEnum expectedDirection) { var robot = new RobotProject.Robot(); robot.PlaceAt(new RobotPosition { X = 0, Y = 0, Direction = iniitialDirection }); robot.Right(); var position = robot.Report(); Assert.AreEqual(position.Direction, expectedDirection); }
public void VerifyDirectionsOnLeft(DirectionEnum iniitialDirection, DirectionEnum expectedDirection) { var robot = new RobotProject.Robot(); robot.PlaceAt(new RobotPosition { X = 0, Y = 0, Direction = iniitialDirection }); robot.Left(); var position = robot.Report(); Console.WriteLine($"{position.Direction} - {expectedDirection}"); Assert.AreEqual(expectedDirection, position.Direction); }