use property rather than getter for hero party
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-08-07 11:30:48 -05:00
parent 15d8d1837d
commit bdc0fe543a
3 changed files with 9 additions and 13 deletions

View File

@@ -14,11 +14,10 @@ public class HeroPartyTest
Assert.IsNotNull(prefab);
var instance = Object.Instantiate(prefab);
var hero = instance.GetComponent<HeroUnit>();
var party = hero.getParty();
yield return null;
Assert.AreEqual(1, party.Count);
Assert.AreEqual(1, hero.party.Count);
Object.Destroy(instance);
yield return null;
Assert.IsEmpty(party.UnitList);
Assert.IsEmpty(hero.party.UnitList);
}
}