Esempio n. 1
0
        public void GetRightestDirectionTest_WhenStartingDown_ThenLeftDownRightUp()
        {
            MazeHelper.ResetRightestDirection(Direction.down);
            Direction rightest = MazeHelper.GetNextRightestDirection();

            Assert.AreEqual(Direction.left, rightest);

            rightest = MazeHelper.GetNextRightestDirection();
            Assert.AreEqual(Direction.down, rightest);

            rightest = MazeHelper.GetNextRightestDirection();
            Assert.AreEqual(Direction.right, rightest);

            rightest = MazeHelper.GetNextRightestDirection();
            Assert.AreEqual(Direction.up, rightest);
        }