Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
GhostWars.Tests EffectTests
Namespace: GhostWars.Tests
Assembly: GhostWars.Tests (in GhostWars.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The EffectTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EffectTests | Initializes a new instance of the EffectTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CreateDeathEffect | ||
CreateHitEffect | ||
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
ShowArrow | ||
ShowDeathEffect | ||
ShowHitEffect | ||
ShowSparkleEffect |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void ShowArrow() { new Command(Command.Click, position => Effects.CreateArrow(Vector2D.Half, position)); }
[Test] public void ShowDeathEffect() { new Command(Command.Click, position => Effects.CreateDeathEffect(position)); }
[Test] public void ShowHitEffect() { new Command(Command.Click, position => Effects.CreateHitEffect(position)); }
[Test] public void ShowSparkleEffect() { var effect = Effects.CreateSparkleEffect(Team.HumanYellow, Vector2D.Half, 20); }
[Test] public void CreateDeathEffect() { var effect = Effects.CreateDeathEffect(Vector2D.Half); Assert.IsNotNull(effect); }
[Test] public void CreateHitEffect() { var effect = Effects.CreateHitEffect(Vector2D.Half); Assert.IsNotNull(effect); }
See Also