SoundAndMusicTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
      CreepyTowers.Tests CreepyTowersGameForTests
        CreepyTowers.Tests.Sounds SoundAndMusicTests

Namespace: CreepyTowers.Tests.Sounds
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class SoundAndMusicTests : CreepyTowersGameForTests

The SoundAndMusicTests type exposes the following members.

Constructors

  NameDescription
Public methodSoundAndMusicTests
Initializes a new instance of the SoundAndMusicTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodBuildTowerAndPlayAttackSound
Public methodBuildTowerAndPlaySoldSound
Public methodBuildTowerAndPlayTowerBuiltSound
Public methodBuildTowerAndPlayUpgradeSound
Public methodDispose (Inherited from CreepyTowersGameForTests.)
Public methodInitialize (Overrides CreepyTowersGameForTests Initialize .)
Public methodInitializeCreepyTowersMockContentLoader (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Public methodPlayMenuButtonClickSound
Public methodPlayMusicWhenSpaceIsPressed
Public methodPlaySandCreepTransformsToGlassSound
Public methodPlayTowerCantBeBuiltHereSound
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Fields

  NameDescription
Protected fieldgame (Inherited from CreepyTowersGameForTests.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test]
public void PlayTowerCantBeBuiltHereSound()
{
    AttachActionToSpaceButton(PlaySound);
    fileName = "TowerCantBuildHere";
}
[Test]
public void PlaySandCreepTransformsToGlassSound()
{
    new Player();
    creep = new Creep(CreepType.Sand, Vector3D.Zero, 180);
    creep.RenderModel();
    AttachActionToSpaceButton(TranformSandToGlass);
    fileName = "CreepTransformToGlass";
}
See Also