private void LoadMaps(string currentMap) { var maps = GameMaps.AvailableMaps(Settings.NumTeams); MapList.Items.Clear(); MapList.Items.AddRange(maps); MapList.Text = maps.Contains(currentMap) ? currentMap : maps[0]; }
public void AvailableMaps_Restricted() { var maps = GameMaps.AvailableMaps(2, false); maps.Length.ShouldBeGreaterThan(0); maps.ShouldNotContain("Brawl2"); maps.ShouldNotContain(GameMaps.RandomMapName_Small); maps.ShouldNotContain(GameMaps.RandomMapName_Normal); maps.ShouldNotContain(GameMaps.RandomMapName_Large); }