Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
CreepyTowers.Tests.Creeps WoodCreepStateChangerTests
Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The WoodCreepStateChangerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WoodCreepStateChangerTests | Initializes a new instance of the WoodCreepStateChangerTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CheckFireThenIceEffect | ||
CheckFireThenWaterEffect | ||
CheckForFireTowerEffect | ||
CheckForIceTowerEffect | ||
CheckForWaterTowerEffect | ||
CheckWaterThenFireEffect | ||
CheckWaterThenIceThenFireEffect | ||
CheckWaterThenIceThenImpactEffect | ||
CreateSandCreep | ||
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 CheckForFireTowerEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep); Assert.IsTrue(creep.State.Fast); Assert.IsTrue(creep.State.Burst); }
[Test, CloseAfterFirstFrame] public void CheckForWaterTowerEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep); Assert.IsTrue(creep.State.Healing); }
[Test, CloseAfterFirstFrame] public void CheckForIceTowerEffect() { StateChanger.CheckCreepState(TowerType.Ice, creep); Assert.IsFalse(creep.State.Burst); Assert.IsFalse(creep.State.Burn); Assert.IsFalse(creep.State.Fast); }
[Test, CloseAfterFirstFrame] public void CheckWaterThenFireEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep); Assert.IsTrue(creep.State.Wet); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep); Assert.IsFalse(creep.State.Wet); }
[Test, CloseAfterFirstFrame] public void CheckWaterThenIceThenFireEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep); Assert.IsTrue(creep.State.Wet); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep); Assert.IsTrue(creep.State.Frozen); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep); Assert.IsTrue(creep.State.Wet); }
[Test, CloseAfterFirstFrame] public void CheckWaterThenIceThenImpactEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep); Assert.IsTrue(creep.State.Wet); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep); Assert.IsTrue(creep.State.Frozen); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Impact, creep); }
[Test, CloseAfterFirstFrame] public void CheckFireThenWaterEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep); Assert.IsTrue(creep.State.Burst); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Water, creep); Assert.IsFalse(creep.State.Burst); }
[Test, CloseAfterFirstFrame] public void CheckFireThenIceEffect() { WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Fire, creep); Assert.IsTrue(creep.State.Burst); WoodCreepStateChanger.ChangeStatesIfWoodCreep(TowerType.Ice, creep); Assert.IsFalse(creep.State.Burst); }
See Also