~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to src/NUnitFramework/framework/TestDetails.cs

  • Committer: Charlie Poole
  • Date: 2012-01-15 18:44:23 UTC
  • mfrom: (3361.1.1 action-attributes)
  • Revision ID: charlie@nunit.org-20120115184423-pj9tjo8gev5dv89z
Merge from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if CLR_2_0 || CLR_4_0
 
2
 
 
3
using System;
 
4
using System.Collections.Generic;
 
5
using System.Reflection;
 
6
using System.Text;
 
7
 
 
8
namespace NUnit.Framework
 
9
{
 
10
    /// <summary>
 
11
    /// Provides details about a test
 
12
    /// </summary>
 
13
    public class TestDetails
 
14
    {
 
15
        ///<summary>
 
16
        /// Creates an instance of TestDetails
 
17
        ///</summary>
 
18
        ///<param name="fixture">The fixture that the test is a member of, if available.</param>
 
19
        ///<param name="method">The method that implements the test, if available.</param>
 
20
        ///<param name="fullName">The full name of the test.</param>
 
21
        ///<param name="type">A string representing the type of test, e.g. "Test Case".</param>
 
22
        ///<param name="isSuite">Indicates if the test represents a suite of tests.</param>
 
23
        public TestDetails(object fixture, MethodInfo method, string fullName, string type, bool isSuite)
 
24
        {
 
25
            Fixture = fixture;
 
26
            Method = method;
 
27
 
 
28
            FullName = fullName;
 
29
            Type = type;
 
30
            IsSuite = isSuite;
 
31
        }
 
32
        
 
33
        ///<summary>
 
34
        /// The fixture that the test is a member of, if available.
 
35
        ///</summary>
 
36
        public object Fixture { get; private set; }
 
37
 
 
38
        /// <summary>
 
39
        /// The method that implements the test, if available.
 
40
        /// </summary>
 
41
        public MethodInfo Method { get; private set; }
 
42
 
 
43
        /// <summary>
 
44
        /// The full name of the test.
 
45
        /// </summary>
 
46
        public string FullName { get; private set; }
 
47
 
 
48
        /// <summary>
 
49
        /// A string representing the type of test, e.g. "Test Case".
 
50
        /// </summary>
 
51
        public string Type { get; private set; }
 
52
 
 
53
        /// <summary>
 
54
        /// Indicates if the test represents a suite of tests.
 
55
        /// </summary>
 
56
        public bool IsSuite { get; private set; }
 
57
    }
 
58
}
 
59
 
 
60
#endif
 
 
b'\\ No newline at end of file'