public void Jumpto_Test() { Robotobj robot = new Robotobj(); robot.JumpTo(new Coord(-1000, 2000)); Assert.AreEqual(-1000, robot.CurrentPos.XPos); Assert.AreEqual(2000, robot.CurrentPos.YPos); }
public void MovementSouth_Test() { Robotobj robot = new Robotobj(); robot.JumpTo(new Coord(0, 0)); robot.Movetowards(Moveto.S, 1500); Assert.AreEqual(0, robot.CurrentPos.XPos); Assert.AreEqual(-1500, robot.CurrentPos.YPos); }