ImageTests ShouldThrowIfImageNotLoadedWithDebuggerAttached Method Delta Engine Documentation

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

public void ShouldThrowIfImageNotLoadedWithDebuggerAttached()
Examples

[Test, CloseAfterFirstFrame]
public void ShouldThrowIfImageNotLoadedWithDebuggerAttached()
{
    //ncrunch: no coverage start 
    if (Debugger.IsAttached)
        Assert.Throws<ContentLoader.ContentNotFound>(
            () => ContentLoader.Load<Image>("UnavailableImage"));
    //ncrunch: no coverage end
}
See Also