Inheritance Hierarchy
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
The PaperCreepStateChangerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | PaperCreepStateChangerTests | Initializes a new instance of the PaperCreepStateChangerTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | ApplyWaterThenFireToPaperCreep | |
![]() | ApplyWaterThenIceThenFireToPaperCreep | |
![]() | ApplyWaterThenIceThenImpactToPaperCreep | |
![]() | CheckWaterEffect | |
![]() | CreatePaperCreep | |
![]() | 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 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