Inheritance Hierarchy
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
The GlassCreepStateChangerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GlassCreepStateChangerTests | Initializes a new instance of the GlassCreepStateChangerTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CheckForFireTower | ||
CheckForImpactTower | ||
CreateGlassCreep | ||
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
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