Пример #1
0
        public void ItAddsAPathUsingACharacter()
        {
            var map = new Map();
            var editor = new MapEditor(map);

            editor.AddPath(0, 1, 'w');

            Assert.AreEqual(Command.Directions.West, map.AvailableMoves(0)[0]);
        }
Пример #2
0
        public void ItDoesntClearThePathsOnClear()
        {
            var map = new Map();

            map.AddPath(0, 1, Command.Directions.East);

            map.Clear();

            Assert.AreEqual(Command.Directions.East, map.AvailableMoves(0)[0]);
        }