Inheritance Hierarchy
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
The PlasticCreepStateChangerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PlasticCreepStateChangerTests | Initializes a new instance of the PlasticCreepStateChangerTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CheckAcidEffect | ||
CheckFireThenIceEffect | ||
CheckFireThenWaterEffect | ||
CheckIceThenWaterEffect | ||
CheckImpactEffect | ||
CreatePlasticCreep | ||
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 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