IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Engine.AsyncTestEngineResult Class Reference

The TestRun class encapsulates an ongoing test run. More...

+ Inheritance diagram for NUnit.Engine.AsyncTestEngineResult:
+ Collaboration diagram for NUnit.Engine.AsyncTestEngineResult:

Public Member Functions

void SetResult (TestEngineResult result)
 
bool Wait (int timeout)
 Blocks the current thread until the current test run completes or the timeout is reached More...
 

Properties

TestEngineResult EngineResult [get]
 Get the result of this run. More...
 
EventWaitHandle WaitHandle [get]
 
bool IsComplete [get]
 True if the test run has completed More...
 
XmlNode ITestRun. Result [get]
 
- Properties inherited from NUnit.Engine.ITestRun
XmlNode Result [get]
 Get the result of the test. More...
 

Private Member Functions

bool ITestRun. Wait (int timeout)
 Blocks the current thread until the current test run completes or the timeout is reached More...
 

Private Attributes

volatile TestEngineResult _result
 
readonly ManualResetEvent _waitHandle = new ManualResetEvent(false)
 

Detailed Description

The TestRun class encapsulates an ongoing test run.

Member Function Documentation

bool NUnit.Engine.AsyncTestEngineResult.Wait ( int  timeout)
inline

Blocks the current thread until the current test run completes or the timeout is reached

Parameters
timeoutA T:System.Int32 that represents the number of milliseconds to wait, or -1 milliseconds to wait indefinitely.
Returns
True if the run completed

Implements NUnit.Engine.ITestRun.

Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_AllowsMultipleWaits(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_ReturnsFalseTillTestCompletes().

bool ITestRun. NUnit.Engine.AsyncTestEngineResult.Wait ( int  timeout)
inlineprivate

Blocks the current thread until the current test run completes or the timeout is reached

Parameters
timeoutA T:System.Int32 that represents the number of milliseconds to wait or -1 milliseconds to wait indefinitely.
Returns
True if the run completed

Implements NUnit.Engine.ITestRun.

Member Data Documentation

volatile TestEngineResult NUnit.Engine.AsyncTestEngineResult._result
private
readonly ManualResetEvent NUnit.Engine.AsyncTestEngineResult._waitHandle = new ManualResetEvent(false)
private

Property Documentation

TestEngineResult NUnit.Engine.AsyncTestEngineResult.EngineResult
get

Get the result of this run.

Exceptions
InvalidOperationExceptionCannot retrieve Result from an incomplete or cancelled TestRun.

Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.Result_ThrowsIfNotSet(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_ReturnsFalseTillTestCompletes().

EventWaitHandle NUnit.Engine.AsyncTestEngineResult.WaitHandle
get
bool NUnit.Engine.AsyncTestEngineResult.IsComplete
get
XmlNode ITestRun. NUnit.Engine.AsyncTestEngineResult.Result
getprivate

The documentation for this class was generated from the following file: