2004-05-01 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / nunit20 / framework / TestInfo.cs
1 namespace NUnit.Core
2 {
3         using System;
4         using System.Collections;
5
6         /// <summary>
7         /// Common interface supported by all representations
8         /// of a test. Only includes informational fields.
9         /// The Run method is specifically excluded to allow
10         /// for data-only representations of a test.
11         /// </summary>
12         public interface TestInfo
13         {
14                 /// <summary>
15                 /// Name of the test
16                 /// </summary>
17                 string Name     { get; }
18                 
19                 /// <summary>
20                 /// Full Name of the test
21                 /// </summary>
22                 string FullName { get; }
23
24                 /// <summary>
25                 /// Whether or not the test should be run
26                 /// </summary>
27                 bool ShouldRun { get; set; }
28
29                 /// <summary>
30                 /// Reason for not running the test, if applicable
31                 /// </summary>
32                 string IgnoreReason { get; set; }
33                 
34                 /// <summary>
35                 /// Count of the test cases ( 1 if this is a test case )
36                 /// </summary>
37                 int CountTestCases { get; }
38
39                 /// <summary>
40                 /// For a test suite, the child tests or suites
41                 /// Null if this is not a test suite
42                 /// </summary>
43                 ArrayList Tests { get; }
44
45                 /// <summary>
46                 /// True if this is a suite
47                 /// </summary>
48                 bool IsSuite { get; }
49         }
50 }
51