EffectTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class EffectTests : TestWithMocksOrVisually

The EffectTests type exposes the following members.

Constructors

  NameDescription
Public methodEffectTests
Initializes a new instance of the EffectTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCreateDeathEffect
Public methodCreateHitEffect
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodShowArrow
Public methodShowDeathEffect
Public methodShowHitEffect
Public methodShowSparkleEffect
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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