C# Class NUnit.Framework.Internal.WorkItems.WorkItem

A WorkItem may be an individual test case, a fixture or a higher level grouping of tests. All WorkItems inherit from the abstract WorkItem class, which uses the template pattern to allow derived classes to perform work in whatever way is needed.
Afficher le fichier Open project: pjcollins/Andr.Unit

Protected Properties

Свойство Type Description
testResult TestResult

Méthodes publiques

Méthode Description
CreateWorkItem ( System.Test test, TestExecutionContext context, ITestFilter filter ) : WorkItem
Execute ( ) : void

Execute the current work item, including any child work items.

WorkItem ( System.Test test, TestExecutionContext context ) : System

Construct a WorkItem for a particular test.

Méthodes protégées

Méthode Description
PerformWork ( ) : void

Method that performs actually performs the work. It should set the State to WorkItemState.Complete when done.

WorkItemComplete ( ) : void

Method called by the derived class when all work is complete

Private Methods

Méthode Description
RunTest ( ) : void
RunTestOnOwnThread ( int timeout ) : void

Method Details

CreateWorkItem() public static méthode

public static CreateWorkItem ( System.Test test, TestExecutionContext context, ITestFilter filter ) : WorkItem
test System.Test
context TestExecutionContext
filter ITestFilter
Résultat WorkItem

Execute() public méthode

Execute the current work item, including any child work items.
public Execute ( ) : void
Résultat void

PerformWork() protected abstract méthode

Method that performs actually performs the work. It should set the State to WorkItemState.Complete when done.
protected abstract PerformWork ( ) : void
Résultat void

WorkItem() public méthode

Construct a WorkItem for a particular test.
public WorkItem ( System.Test test, TestExecutionContext context ) : System
test System.Test The test that the WorkItem will run
context TestExecutionContext The context to be used for running this test
Résultat System

WorkItemComplete() protected méthode

Method called by the derived class when all work is complete
protected WorkItemComplete ( ) : void
Résultat void

Property Details

testResult protected_oe property

The result of running the test
protected TestResult testResult
Résultat TestResult