use property rather than getter for hero party
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user