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.
파일 보기 프로젝트 열기: pjcollins/Andr.Unit

보호된 프로퍼티들

프로퍼티 타입 설명
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