예제 #1
0
        public void m_MapTest_EastWallBroken_AllMaps()
        {
            Game aGame = new Game();
            aGame.SetMap(1);
            Tile[,] theMap;
            Tile[][,] allTheMaps = aGame.GetFiler().GetAllMyMaps();
            bool expected, actual;
            expected = false;
            actual = false;

            // return true if one East wall is broken

            for (int i = 0; i < allTheMaps.Length; i++)
            {
                if (allTheMaps[i] != null)
                {
                    theMap = allTheMaps[i];
                    if (aGame.EastWallBroken(theMap) == true)
                    {
                        actual = true;
                    }
                }
            }

            Assert.AreEqual(expected, actual, "One of the East walls is broken");
        }