MusicTests ShouldThrowIfMusicNotLoadedInDebugModeOrWithDebuggerAttached 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 ShouldThrowIfMusicNotLoadedInDebugModeOrWithDebuggerAttached()
Examples

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