PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/interfaces/PropertyNames.cs

#
C# | 55 lines | 25 code | 2 blank | 28 comment | 0 complexity | 92f65024f4fd2d20be663a3c8043a4c6 MD5 | raw file
 1// ****************************************************************
 2// Copyright 2009, 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
 5// ****************************************************************
 6
 7using System;
 8
 9namespace NUnit.Core
10{
11    /// <summary>
12    /// The PropertyNames struct lists common property names, which are
13    /// accessed by reflection in the NUnit core. This provides a modicum 
14    /// of type safety as opposed to using the strings directly.
15    /// </summary>
16    public struct PropertyNames
17    {
18        /// <summary>Exception Type expected from a test</summary>
19        public static readonly string ExpectedException = "ExpectedException";
20        /// <summary>Exception Type expected from a test (pre-2.5)</summary>
21        public static readonly string LegacyExceptionType = "ExceptionType";
22        /// <summary>FullName of the Exception Type expected from a test</summary>
23        public static readonly string ExpectedExceptionName = "ExpectedExceptionName";
24        /// <summary>FullName of the Exception Type expected from a test (pre-2.5)</summary>
25        public static readonly string LegacyExceptionName = "ExceptionName";
26        /// <summary>ExpectedException Message</summary>
27        public static readonly string ExpectedMessage = "ExpectedMessage";
28        /// <summary>ExpectedException MatchType</summary>
29        public static readonly string MatchType = "MatchType";
30        /// <summary>Expected return result from test</summary>
31        public static readonly string Result = "Result";
32        /// <summary>Description of the test</summary>
33        public static readonly string Description = "Description";
34        /// <summary>Alternate test name</summary>
35        public static readonly string TestName = "TestName";
36        /// <summary>Arguments for the test</summary>
37        public static readonly string Arguments = "Arguments";
38        /// <summary>Indicates test case is ignored</summary>
39        public static readonly string Ignored = "Ignored";
40        /// <summary>The reason a test case is ignored</summary>
41        public static readonly string IgnoreReason = "IgnoreReason";
42        /// <summary>Properties of the test</summary>
43        public static readonly string Properties = "Properties";
44        /// <summary>Categories of the test</summary>
45        public static readonly string Categories = "Categories";
46        /// <summary>Name of a category</summary>
47        public static readonly string CategoryName = "Name";
48        /// <summary>Reason for not running a test</summary>
49        public static readonly string Reason = "Reason";
50        /// <summary>Flag indicating excluded test should be marked as Ignored</summary>
51        public static readonly string IgnoreExcluded = "IgnoreExcluded";
52        /// <summary>Name of an addin that must be present to run a test</summary>
53        public static readonly string RequiredAddin = "RequiredAddin";
54    }
55}