public void GetPartyIconTests() { List <string> assertMessages = new List <string>(); foreach (PartyIconColor icon in Enum.GetValues(typeof(PartyIconColor))) { if (HeroesIcons.GetPartyIcon(icon) == null) { assertMessages.Add($"Party icon {icon} is null"); } } AssertFailMessage(assertMessages); }
private void SetPartyIcon(PartyIconColor icon) { PartyIcon = HeroesIcons.GetPartyIcon(icon); }