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]); }
private void SetupMap() { editor = new MapEditor(map); editor.AddPath(1, 2, 'E'); editor.AddPath(2, 3, 'E'); editor.AddPath(3, 4, 'E'); editor.AddPath(4, 5, 'E'); editor.AddPath(6, 7, 'S'); editor.AddPath(7, 3, 'S'); editor.AddPath(3, 8, 'S'); editor.AddPath(8, 9, 'S'); editor.PutInCavern("Wumpus", 9); editor.PutInCavern("Arrow", 3); editor.PutInCavern("Arrow", 5); editor.PutInCavern("Arrow", 2); editor.PutInCavern("Arrow", 7); editor.PutInCavern("Player", 1); }