Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void CheckUpdateWithDeadCreep() { var creep = new Creep(CreepType.Cloth, Vector2D.Zero); creep.AdjustStat(new StatAdjustment("Hp", "", -185)); creep.ReceiveAttack(TowerType.Fire, 10.0f); creep.Update(); Assert.AreEqual(0.0f, creep.GetStatValue("Hp")); }
See Also