MusicTests StartAndStopMusic Method Delta Engine Documentation

Namespace: DeltaEngine.Multimedia.Tests
Assembly: DeltaEngine.Multimedia.Tests (in DeltaEngine.Multimedia.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void StartAndStopMusic()
Examples

[Test, Ignore]
public void StartAndStopMusic()
{
    var music = ContentLoader.Load<Music>("DefaultMusic");
    AssertBetween(4.10f, 4.15f, music.DurationInSeconds);
    new MusicPlayedOneSecondTester(music);
    music.Play();
    Assert.IsTrue(music.IsPlaying());
}
See Also