예제 #1
0
        public void MoveTest1()
        {
            // Testing North Movement
            ToyBotObj tbot = new ToyBotObj(Tuple.Create <short, short>(0, 0), 0, 0, Tuple.Create <short, short>(5, 5));

            tbot.Move();
            Assert.AreEqual(tbot.Position, Tuple.Create <short, short>(0, 1));
        }
예제 #2
0
        public void MoveBoundaryTest4()
        {
            // Testing Southern Boundary Non-Movement
            ToyBotObj tbot = new ToyBotObj(Tuple.Create <short, short>(0, 0), 3, 0, Tuple.Create <short, short>(5, 5));

            tbot.Move();
            Assert.AreEqual(tbot.Position, Tuple.Create <short, short>(0, 0));
        }