GlassCreepStateChangerTests ClassDelta Engine Documentation
Inheritance Hierarchy

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

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

public class GlassCreepStateChangerTests : TestWithMocksOrVisually

The GlassCreepStateChangerTests type exposes the following members.

Constructors

  NameDescription
Public methodGlassCreepStateChangerTests
Initializes a new instance of the GlassCreepStateChangerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCheckForFireTower
Public methodCheckForImpactTower
Public methodCreateGlassCreep
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 CheckForFireTower()
{
    StateChanger.CheckCreepState(TowerType.Fire, creep);
    Assert.IsTrue(creep.State.Melt);
    Assert.IsTrue(creep.State.Slow);
    Assert.IsTrue(creep.State.Enfeeble);
}
[Test, CloseAfterFirstFrame]
public void CheckForImpactTower()
{
    GlassCreepStateChanger.ChangeStatesIfGlassCreep(TowerType.Impact, creep);
    Assert.IsFalse(creep.State.Sudden);
}
See Also