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 CheckReceiveAttackWithInactiveCreep() { var creep = new Creep(CreepType.Cloth, Vector2D.Zero); creep.IsActive = false; creep.ReceiveAttack(TowerType.Fire, 10.0f); Assert.IsFalse(creep.IsActive); Assert.AreEqual(creep.GetStatValue("Hp"), creep.GetStatBaseValue("Hp")); }
See Also