SubtractLifeTests TestSubtractLife Method Delta Engine Documentation

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

public void TestSubtractLife()
Examples

[Test, CloseAfterFirstFrame]
public void TestSubtractLife()
{
    new SubtractLife();
    var player = new Player();
    GameTrigger.OnEnemyReachGoal();
    AdvanceTimeAndUpdateEntities();
    Assert.AreEqual(0, player.LivesLeft);
}
See Also