Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NUnitException.cs « NUnitCore « src « nunit « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 155fe741547537aa93509e111ac030cd3eb050c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace NUnit.Framework {

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