Inheritance Hierarchy
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
The SoundAndMusicTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SoundAndMusicTests | Initializes a new instance of the SoundAndMusicTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | BuildTowerAndPlayAttackSound | |
![]() | BuildTowerAndPlaySoldSound | |
![]() | BuildTowerAndPlayTowerBuiltSound | |
![]() | BuildTowerAndPlayUpgradeSound | |
![]() | Dispose | (Inherited from CreepyTowersGameForTests.) |
![]() | Initialize | (Overrides CreepyTowersGameForTests Initialize .) |
![]() | InitializeCreepyTowersMockContentLoader | (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.) |
![]() | InitializeResolver | (Inherited from TestWithMocksOrVisually.) |
![]() | PlayMenuButtonClickSound | |
![]() | PlayMusicWhenSpaceIsPressed | |
![]() | PlaySandCreepTransformsToGlassSound | |
![]() | PlayTowerCantBeBuiltHereSound | |
![]() | 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 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