C# Класс 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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
testResult TestResult

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
RunTest ( ) : void
RunTestOnOwnThread ( int timeout ) : void

Описание методов

CreateWorkItem() публичный статический Метод

public static CreateWorkItem ( System.Test test, TestExecutionContext context, ITestFilter filter ) : WorkItem
test System.Test
context TestExecutionContext
filter ITestFilter
Результат WorkItem

Execute() публичный Метод

Execute the current work item, including any child work items.
public Execute ( ) : void
Результат void

PerformWork() защищенный абстрактный Метод

Method that performs actually performs the work. It should set the State to WorkItemState.Complete when done.
protected abstract PerformWork ( ) : void
Результат void

WorkItem() публичный Метод

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
Результат System

WorkItemComplete() защищенный Метод

Method called by the derived class when all work is complete
protected WorkItemComplete ( ) : void
Результат void

Описание свойств

testResult защищенное свойство

The result of running the test
protected TestResult testResult
Результат TestResult