~a-schlapsi/nunit-3.0/linux-makefile

« back to all changes in this revision

Viewing changes to src/framework/Internal/Commands/ITestCommand.cs

  • Committer: Andreas Schlapsi
  • Date: 2010-10-05 22:15:56 UTC
  • mfrom: (18.1.227 work)
  • Revision ID: a.schlapsi@gmx.at-20101005221556-gi6plm10hid84qrf
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
 
 
3
namespace NUnit.Framework.Internal
 
4
{
 
5
    /// <summary>
 
6
    /// The ITestCommand interface is implemented by an
 
7
    /// object that knows how to run a test.
 
8
    /// </summary>
 
9
    public interface ITestCommand
 
10
    {
 
11
        /// <summary>
 
12
        /// Gets the Test to which this command applies.
 
13
        /// </summary>
 
14
        Test Test { get; }
 
15
 
 
16
        /// <summary>
 
17
        /// Gets any child TestCommands of this command
 
18
        /// </summary>
 
19
        /// <value>A list of child TestCommands</value>
 
20
#if CLR_2_0 || CLR_4_0
 
21
        System.Collections.Generic.IList<ITestCommand> Children { get; }
 
22
#else
 
23
        System.Collections.IList Children { get; }
 
24
#endif
 
25
 
 
26
        /// <summary>
 
27
        /// Runs the test, returning a TestResult.
 
28
        /// </summary>
 
29
        /// <param name="testObject">The object on which the test should run.</param>
 
30
        /// <returns>A TestResult</returns>
 
31
        TestResult Execute(object testObject);
 
32
    }
 
33
}