Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
CreepyTowers.Tests CreepyTowersGameForTests
CreepyTowers.Tests.Avatars SpecialAttackSelectorTests
Namespace: CreepyTowers.Tests.Avatars
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The SpecialAttackSelectorTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SpecialAttackSelectorTests | Initializes a new instance of the SpecialAttackSelectorTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
Dispose | (Inherited from CreepyTowersGameForTests.) | |
DragonAuraCannon | ||
DragonBreathOfFire | ||
Initialize | (Overrides CreepyTowersGameForTests Initialize .) | |
InitializeCreepyTowersMockContentLoader | (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
PenguinBigFirework | ||
PenguinCarpetBombing | ||
PiggyBankCoinMinefield | ||
PiggyBankPayDay | ||
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Fields
Name | Description | |
---|---|---|
game | (Inherited from CreepyTowersGameForTests.) |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void DragonBreathOfFire() { var player = new Player(); player.Avatar.ActivatedSpecialAttack = AvatarAttack.DragonBreathOfFire; player.Avatar.SpecialAttackAIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackAIsActivated); }
[Test] public void DragonAuraCannon() { var player = new Player(); player.Avatar.ActivatedSpecialAttack = AvatarAttack.DragonAuraCannon; player.Avatar.SpecialAttackBIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated); }
[Test] public void PenguinBigFirework() { var player = new Player("", CreepyTowers.Content.Avatars.Penguin); player.Avatar.ActivatedSpecialAttack = AvatarAttack.PenguinBigFirework; player.Avatar.SpecialAttackAIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackAIsActivated); }
[Test, Timeout(5000)] public void PenguinCarpetBombing() { var player = new Player("", CreepyTowers.Content.Avatars.Penguin); player.Avatar.ActivatedSpecialAttack = AvatarAttack.PenguinCarpetBombing; player.Avatar.SpecialAttackBIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated); }
[Test] public void PiggyBankCoinMinefield() { var player = new Player("", CreepyTowers.Content.Avatars.PiggyBank); player.Avatar.ActivatedSpecialAttack = AvatarAttack.PiggyBankCoinMinefield; player.Avatar.SpecialAttackAIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackAIsActivated); }
[Test] public void PiggyBankPayDay() { var player = new Player("", CreepyTowers.Content.Avatars.PiggyBank); player.Avatar.ActivatedSpecialAttack = AvatarAttack.PiggyBankPayDay; player.Avatar.SpecialAttackBIsActivated = true; SpecialAttackSelector.SelectAttack(Vector2D.One); Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated); }
See Also