[NUI] Rebase develnui (DevelNUI only patches --> master) (#3910)
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Devel.Tests.Ubuntu / nunit.framework / Interfaces / ITestResult.cs
1 // ***********************************************************************
2 // Copyright (c) 2010 Charlie Poole
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining
5 // a copy of this software and associated documentation files (the
6 // "Software"), to deal in the Software without restriction, including
7 // without limitation the rights to use, copy, modify, merge, publish,
8 // distribute, sublicense, and/or sell copies of the Software, and to
9 // permit persons to whom the Software is furnished to do so, subject to
10 // the following conditions:
11 // 
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
14 // 
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 // ***********************************************************************
23 #define PORTABLE
24 #define TIZEN
25 #define NUNIT_FRAMEWORK
26 #define NUNITLITE
27 #define NET_4_5
28 #define PARALLEL
29 using System;
30 using System.Collections.Generic;
31
32 namespace NUnit.Framework.Interfaces
33 {
34     /// <summary>
35     /// The ITestResult interface represents the result of a test.
36     /// </summary>
37     public interface ITestResult : IXmlNodeBuilder
38     {
39         /// <summary>
40         /// Gets the ResultState of the test result, which 
41         /// indicates the success or failure of the test.
42         /// </summary>
43         ResultState ResultState
44         {
45             get;
46         }
47
48         /// <summary>
49         /// Gets the name of the test result
50         /// </summary>
51         string Name
52         {
53             get;
54         }
55
56         /// <summary>
57         /// Gets the full name of the test result
58         /// </summary>
59         string FullName
60         {
61             get;
62         }
63
64         /// <summary>
65         /// Gets the elapsed time for running the test in seconds
66         /// </summary>
67         double Duration
68         {
69             get;
70         }
71
72         /// <summary>
73         /// Gets or sets the time the test started running.
74         /// </summary>
75         DateTime StartTime
76         {
77             get;
78         }
79
80         /// <summary>
81         /// Gets or sets the time the test finished running.
82         /// </summary>
83         DateTime EndTime
84         {
85             get;
86         }
87
88         /// <summary>
89         /// Gets the message associated with a test
90         /// failure or with not running the test
91         /// </summary>
92         string Message
93         {
94             get;
95         }
96
97         /// <summary>
98         /// Gets any stacktrace associated with an
99         /// error or failure. Not available in
100         /// the Compact Framework 1.0.
101         /// </summary>
102         string StackTrace
103         {
104             get;
105         }
106
107         /// <summary>
108         /// Gets the number of asserts executed
109         /// when running the test and all its children.
110         /// </summary>
111         int AssertCount
112         {
113             get;
114         }
115
116
117         /// <summary>
118         /// Gets the number of test cases that failed
119         /// when running the test and all its children.
120         /// </summary>
121         int FailCount
122         {
123             get;
124         }
125
126         /// <summary>
127         /// Gets the number of test cases that passed
128         /// when running the test and all its children.
129         /// </summary>
130         int PassCount
131         {
132             get;
133         }
134
135         /// <summary>
136         /// Gets the number of test cases that were skipped
137         /// when running the test and all its children.
138         /// </summary>
139         int SkipCount
140         {
141             get;
142         }
143
144         /// <summary>
145         /// Gets the number of test cases that were inconclusive
146         /// when running the test and all its children.
147         /// </summary>
148         int InconclusiveCount
149         {
150             get;
151         }
152
153         /// <summary>
154         /// Indicates whether this result has any child results.
155         /// Accessing HasChildren should not force creation of the
156         /// Children collection in classes implementing this interface.
157         /// </summary>
158         bool HasChildren
159         {
160             get;
161         }
162
163         /// <summary>
164         /// Gets the the collection of child results.
165         /// </summary>
166         IEnumerable<ITestResult> Children
167         {
168             get;
169         }
170
171         /// <summary>
172         /// Gets the Test to which this result applies.
173         /// </summary>
174         ITest Test
175         {
176             get;
177         }
178
179         /// <summary>
180         /// Gets any text output written to this result.
181         /// </summary>
182         string Output
183         {
184             get;
185         }
186     }
187 }