TowerTargetFinderTests TowerDoesNotAttackIfStillInCooldown 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 TowerDoesNotAttackIfStillInCooldown()
Examples

[Test, CloseAfterFirstFrame]
public void TowerDoesNotAttackIfStillInCooldown()
{
    var tower = new Tower(TowerType.Water, Vector2D.Zero);
    var creep = CreateCreepOfType(CreepType.Cloth, 2.0f * Vector3D.UnitY);
    tower.RenderModel();
    AdvanceToJustBeforeTowerAttack(tower);
    Assert.IsTrue(tower.IsOnCooldown);
    Assert.AreEqual(1, creep.GetStatPercentage("Hp"));
}
See Also