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 
24 using System;
25 
26 namespace NUnit.Framework.Internal
27 {
28     /// <summary>
29     /// The PropertyNames class provides static constants for the
30     /// standard property names that NUnit uses on tests.
31     /// </summary>
32     public class PropertyNames
33     {
34         /// <summary>
35         /// The Description of a test
36         /// </summary>
37         public static readonly string Description = "Description";
38 
39         /// <summary>
40         /// The reason a test was not run
41         /// </summary>
42         public static readonly string SkipReason = "_SKIPREASON";
43 
44         /// <summary>
45         /// The stack trace from any data provider that threw
46         /// an exception.
47         /// </summary>
48         public static readonly string ProviderStackTrace = "_PROVIDERSTACKTRACE";
49 
50         /// <summary>
51         /// The culture to be set for a test
52         /// </summary>
53         public static readonly string SetCulture = "SetCulture";
54 
55         /// <summary>
56         /// The UI culture to be set for a test
57         /// </summary>
58         public static readonly string SetUICulture = "SetUICulture";
59 
60         /// <summary>
61         /// The categories applying to a test
62         /// </summary>
63         public static readonly string Category = "Category";
64 
65 #if !NUNITLITE
66         /// <summary>
67         /// The ApartmentState required for running the test
68         /// </summary>
69         public static readonly string ApartmentState = "ApartmentState";
70 #endif
71 
72         /// <summary>
73         /// The timeout value for the test
74         /// </summary>
75         public static readonly string Timeout = "Timeout";
76 
77         /// <summary>
78         /// The number of times the test should be repeated
79         /// </summary>
80         public static readonly string RepeatCount = "Repeat";
81 
82         /// <summary>
83         /// The maximum time in ms, above which the test is considered to have failed
84         /// </summary>
85         public static readonly string MaxTime = "MaxTime";
86 
87         /// <summary>
88         /// The selected strategy for joining parameter data into test cases
89         /// </summary>
90         public static readonly string JoinType = "_JOINTYPE";
91 
92         /// <summary>
93         /// The process ID of the executing assembly
94         /// </summary>
95         public static readonly string ProcessID = "_PID";
96 
97         /// <summary>
98         /// The FriendlyName of the AppDomain in which the assembly is running
99         /// </summary>
100         public static readonly string AppDomain = "_APPDOMAIN";
101     }
102 }
103