CreepStateTests TestFrozenState Method Delta Engine Documentation

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

public void TestFrozenState()
Examples

[Test]
public void TestFrozenState()
{
    var creep = new Creep(CreepType.Cloth, Vector2D.Zero);
    var state = new CreepState();
    state.Frozen = true;
    state.UpdateStateAndTimers(creep);
    Assert.IsTrue(state.Frozen);
    state.Unfreezable = true;
    state.UpdateStateAndTimers(creep);
    Assert.IsTrue(state.Unfreezable);
}
See Also