SoundTests ShouldThrowIfSoundNotLoadedInDebugModeOrWithDebuggerAttached 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 ShouldThrowIfSoundNotLoadedInDebugModeOrWithDebuggerAttached()
Examples

[Test]
public void ShouldThrowIfSoundNotLoadedInDebugModeOrWithDebuggerAttached()
{
    if (!Debugger.IsAttached)
        return;
    //ncrunch: no coverage start
    Assert.Throws<ContentLoader.ContentNotFound>(
        () => ContentLoader.Load<Sound>("UnavailableSound"));
}
See Also