Exemplo n.º 1
0
        public void JumpedSpaceTest()
        {
            game target = new game();

            TestGamePlay.trianglePegs_gameAccessor accessor = new TestGamePlay.trianglePegs_gameAccessor(target);

            int oldPosition = 0; // TODO: Initialize to an appropriate value

            int newPosition = 0; // TODO: Initialize to an appropriate value

            int expected = 0;
            int actual;

            actual = accessor.JumpedSpace(oldPosition, newPosition);

            Assert.AreEqual(expected, actual, "trianglePegs.game.JumpedSpace did not return the expected value.");
        }
Exemplo n.º 2
0
        public void IsValidMoveTest()
        {
            game target = new game();

            TestGamePlay.trianglePegs_gameAccessor accessor = new TestGamePlay.trianglePegs_gameAccessor(target);

            int oldPosition = 0; // TODO: Initialize to an appropriate value

            int newPosition = 0; // TODO: Initialize to an appropriate value

            bool expected = false;
            bool actual;

            actual = accessor.IsValidMove(oldPosition, newPosition);

            Assert.AreEqual(expected, actual, "trianglePegs.game.IsValidMove did not return the expected value.");
        }