BossTests CheckReceiveAttackWithInactiveBoss Method Delta Engine Documentation

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

public void CheckReceiveAttackWithInactiveBoss()
Examples

[Test, CloseAfterFirstFrame]
public void CheckReceiveAttackWithInactiveBoss()
{
    var boss = new Boss(BossType.Cloak, Vector2D.Zero);
    boss.IsActive = false;
    boss.ReceiveAttack(TowerType.Fire, 100.0f);
    Assert.IsFalse(boss.IsActive);
    Assert.AreEqual(boss.GetStatValue("Hp"), boss.GetStatBaseValue("Hp"));
}
See Also