WoodCreepStateChangerTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    CreepyTowers.Tests.Creeps WoodCreepStateChangerTests

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

public class WoodCreepStateChangerTests : TestWithMocksOrVisually

The WoodCreepStateChangerTests type exposes the following members.

Constructors

  NameDescription
Public methodWoodCreepStateChangerTests
Initializes a new instance of the WoodCreepStateChangerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCheckFireThenIceEffect
Public methodCheckFireThenWaterEffect
Public methodCheckForFireTowerEffect
Public methodCheckForIceTowerEffect
Public methodCheckForWaterTowerEffect
Public methodCheckWaterThenFireEffect
Public methodCheckWaterThenIceThenFireEffect
Public methodCheckWaterThenIceThenImpactEffect
Public methodCreateSandCreep
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, CloseAfterFirstFrame]
public void CheckForFireTowerEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Fast);
    Assert.IsTrue(creep.State.Burst);
}
[Test, CloseAfterFirstFrame]
public void CheckForWaterTowerEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep);
    Assert.IsTrue(creep.State.Healing);
}
[Test, CloseAfterFirstFrame]
public void CheckForIceTowerEffect()
{
    StateChanger.CheckCreepState(TowerType.Ice, creep);
    Assert.IsFalse(creep.State.Burst);
    Assert.IsFalse(creep.State.Burn);
    Assert.IsFalse(creep.State.Fast);
}
[Test, CloseAfterFirstFrame]
public void CheckWaterThenFireEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep);
    Assert.IsTrue(creep.State.Wet);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep);
    Assert.IsFalse(creep.State.Wet);
}
[Test, CloseAfterFirstFrame]
public void CheckWaterThenIceThenFireEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep);
    Assert.IsTrue(creep.State.Wet);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep);
    Assert.IsTrue(creep.State.Frozen);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Wet);
}
[Test, CloseAfterFirstFrame]
public void CheckWaterThenIceThenImpactEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep);
    Assert.IsTrue(creep.State.Wet);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep);
    Assert.IsTrue(creep.State.Frozen);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Impact, creep);
}
[Test, CloseAfterFirstFrame]
public void CheckFireThenWaterEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Burst);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep);
    Assert.IsFalse(creep.State.Burst);
}
[Test, CloseAfterFirstFrame]
public void CheckFireThenIceEffect()
{
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Burst);
    WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep);
    Assert.IsFalse(creep.State.Burst);
}
See Also