TowerTargetFinderTests TowerDoesNotAttackInactiveCreep Method Delta Engine Documentation

Namespace: CreepyTowers.Tests
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void TowerDoesNotAttackInactiveCreep()
Examples

[Test, CloseAfterFirstFrame]
public void TowerDoesNotAttackInactiveCreep()
{
    var tower = new Tower(TowerType.Water, Vector2D.Zero);
    var creep = CreateCreepOfType(CreepType.Cloth, Vector3D.UnitY);
    creep.IsActive = false;
    AdvanceTimeTillTowerAttacks(tower);
    Assert.AreEqual(1, creep.GetStatPercentage("Hp"));
}
See Also