namespace NUnit.Framework { using System; using System.Diagnostics; /// Thrown when an assertion failed. Here to preserve the inner /// exception and hence its stack trace. public class NUnitException: ApplicationException { /// /// /// /// /// public NUnitException(string message, Exception inner) : base(message, inner) { } /// /// /// public bool IsAssertionFailure { get { return InnerException.GetType() == typeof(AssertionFailedError); } } } }