2009-11-24 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitCore / interfaces / ResultState.cs
blobf84a729255edaaaac0c4dc6e16ac2125c0c8c86c
1 // ****************************************************************
2 // Copyright 2007, Charlie Poole
3 // This is free software licensed under the NUnit license. You may
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
5 // ****************************************************************
6 using System;
8 namespace NUnit.Core
10 /// <summary>
11 /// The ResultState enum indicates the result of running a test
12 /// </summary>
13 public enum ResultState
15 /// <summary>
16 /// The test succeeded
17 /// </summary>
18 Success,
20 /// <summary>
21 /// The test failed
22 /// </summary>
23 Failure,
25 /// <summary>
26 /// The test encountered an unexpected exception
27 /// </summary>
28 Error
31 /// <summary>
32 /// The FailureSite enum indicates the stage of a test
33 /// in which an error or failure occured.
34 /// </summary>
35 public enum FailureSite
37 /// <summary>
38 /// The location of the failure is not known
39 /// </summary>
40 Unknown,
42 /// <summary>
43 /// Failure in the test itself
44 /// </summary>
45 Test,
47 /// <summary>
48 /// Failure in the SetUp method
49 /// </summary>
50 SetUp,
52 /// <summary>
53 /// Failure in the TearDown method
54 /// </summary>
55 TearDown,
57 /// <summary>
58 /// Failure of a parent test
59 /// </summary>
60 Parent,
62 /// <summary>
63 /// Failure of a child test
64 /// </summary>
65 Child