ClothCreepStateChangerTests CheckForFireTowerWetClothCreep 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 CheckForFireTowerWetClothCreep()
Examples

[Test, CloseAfterFirstFrame]
public void CheckForFireTowerWetClothCreep()
{
    creep.State.Wet = true;
    ClothCreepStateChanger.ChangeStatesIfClothCreep(TowerType.Fire, creep);
    Assert.IsFalse(creep.State.Wet);
    Assert.AreEqual(Vulnerability.HardBoiled,
        creep.State.GetVulnerability(TowerType.Impact));
    Assert.AreEqual(Vulnerability.HardBoiled,
        creep.State.GetVulnerability(TowerType.Ice));
    Assert.AreEqual(Vulnerability.Weak,
        creep.State.GetVulnerability(TowerType.Slice));
    Assert.AreEqual(Vulnerability.Vulnerable,
        creep.State.GetVulnerability(TowerType.Acid));
    Assert.AreEqual(Vulnerability.Vulnerable,
        creep.State.GetVulnerability(TowerType.Fire));
}
See Also