BossTests CheckReceiveAttackWithDeadBoss 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 CheckReceiveAttackWithDeadBoss()
Examples

[Test, CloseAfterFirstFrame]
public void CheckReceiveAttackWithDeadBoss()
{
    var boss = new Boss(BossType.Cloak, Vector2D.Zero);
    boss.AdjustStat(new StatAdjustment("Hp", "", -500));
    boss.ReceiveAttack(TowerType.Fire, 100.0f);
    Assert.AreEqual(0.0f, boss.GetStatValue("Hp"));
}
See Also