ExceptionExtensionsTests CheckForFatalException 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 CheckForFatalException()
Examples

[Test]
public void CheckForFatalException()
{
    Assert.IsFalse(new Exception().IsFatal());
    Assert.IsTrue(new Exception("", new InvalidOperationException()).IsFatal());
    Assert.IsTrue(new InvalidOperationException().IsFatal());
    Assert.IsTrue(new OutOfMemoryException().IsFatal());
    Assert.IsTrue(new AccessViolationException().IsFatal());
    Assert.IsTrue(new StackOverflowException().IsFatal());
    Assert.IsTrue(new TargetInvocationException(null).IsFatal());
    Assert.IsFalse(new NullReferenceException(null).IsFatal());
}
See Also