프로퍼티 | 타입 | 설명 | |
---|---|---|---|
RunTest | void | ||
RunTestOnOwnThread | void | ||
RunThread | void |
메소드 | 설명 | |
---|---|---|
Cancel ( bool force ) : void |
Cancel (abort or stop) a WorkItem
|
|
CreateWorkItem ( ITest test, ITestFilter filter ) : WorkItem |
Creates a work item.
|
|
Execute ( ) : void |
Execute the current work item, including any child work items.
|
|
InitializeContext ( TestExecutionContext context ) : void |
Initialize the TestExecutionContext. This must be done before executing the WorkItem. Originally, the context was provided in the constructor but delaying initialization of the context until the item is about to be dispatched allows changes in the parent context during OneTimeSetUp to be reflected in the child. |
|
WorkItem ( System.Test test ) : 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, ApartmentState apartment ) : void | ||
RunThread ( int timeout ) : void |
public Cancel ( bool force ) : void | ||
force | bool | true if the WorkItem should be aborted, false if it should run to completion |
리턴 | void |
static public CreateWorkItem ( ITest test, ITestFilter filter ) : WorkItem | ||
test | ITest | The test for which this WorkItem is being created. |
filter | ITestFilter | The filter to be used in selecting any child Tests. |
리턴 | WorkItem |
public InitializeContext ( TestExecutionContext context ) : void | ||
context | TestExecutionContext | The TestExecutionContext to use |
리턴 | void |
public WorkItem ( System.Test test ) : System | ||
test | System.Test | The test that the WorkItem will run |
리턴 | System |