PlasticCreepStateChangerTests ClassDelta Engine Documentation
Inheritance Hierarchy

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

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

public class PlasticCreepStateChangerTests : TestWithMocksOrVisually

The PlasticCreepStateChangerTests type exposes the following members.

Constructors

  NameDescription
Public methodPlasticCreepStateChangerTests
Initializes a new instance of the PlasticCreepStateChangerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCheckAcidEffect
Public methodCheckFireThenIceEffect
Public methodCheckFireThenWaterEffect
Public methodCheckIceThenWaterEffect
Public methodCheckImpactEffect
Public methodCreatePlasticCreep
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 CheckImpactEffect()
{
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Impact, creep);
    Assert.IsTrue(creep.State.Slow);
}
[Test, CloseAfterFirstFrame]
public void CheckAcidEffect()
{
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Acid, creep);
    Assert.IsTrue(creep.State.Melt);
}
[Test, CloseAfterFirstFrame]
public void CheckIceThenWaterEffect()
{
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Ice, creep);
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Water, creep);
}
[Test, CloseAfterFirstFrame]
public void CheckFireThenWaterEffect()
{
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Burn);
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Water, creep);
    Assert.IsFalse(creep.State.Burn);
}
[Test, CloseAfterFirstFrame]
public void CheckFireThenIceEffect()
{
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Burn);
    PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(TowerType.Ice, creep);
    Assert.IsFalse(creep.State.Burn);
}
See Also