PaperCreepStateChangerTests ClassDelta Engine Documentation
Inheritance Hierarchy

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

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

public class PaperCreepStateChangerTests : TestWithMocksOrVisually

The PaperCreepStateChangerTests type exposes the following members.

Constructors

  NameDescription
Public methodPaperCreepStateChangerTests
Initializes a new instance of the PaperCreepStateChangerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodApplyWaterThenFireToPaperCreep
Public methodApplyWaterThenIceThenFireToPaperCreep
Public methodApplyWaterThenIceThenImpactToPaperCreep
Public methodCheckWaterEffect
Public methodCreatePaperCreep
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 CheckWaterEffect()
{
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
    Assert.IsTrue(creep.State.Wet);
}
[Test, CloseAfterFirstFrame]
public void ApplyWaterThenFireToPaperCreep()
{
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Fire, creep);
    Assert.IsFalse(creep.State.Wet);
}
[Test, CloseAfterFirstFrame]
public void ApplyWaterThenIceThenFireToPaperCreep()
{
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Ice, creep);
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Fire, creep);
    Assert.IsFalse(creep.State.Frozen);
    Assert.IsTrue(creep.State.Unfreezable);
    Assert.IsTrue(creep.State.Wet);
}
[Test, CloseAfterFirstFrame]
public void ApplyWaterThenIceThenImpactToPaperCreep()
{
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Ice, creep);
    PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Impact, creep);
    Assert.IsTrue(creep.State.Frozen);
}
See Also