ExceptionExtensionsTests RethrowWeakExceptionIfNoDebuggerIsAttached Method Delta Engine Documentation

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

public void RethrowWeakExceptionIfNoDebuggerIsAttached()
Examples

[Test]
public void RethrowWeakExceptionIfNoDebuggerIsAttached()
{
    try
    {
        TryRethrowWeakExceptionIfNoDebuggerIsAttached();
    } // ncrunch: no coverage 
    catch (Exception ex)
    {
        // This will fail if debugger is attached, but that is expected
        Assert.IsTrue(ex.IsWeak());
    }
}
See Also