Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }