IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The TestRun class encapsulates an ongoing test run. More...
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] |
![]() | |
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) |
The TestRun class encapsulates an ongoing test run.
|
inline |
Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.IsComplete_TrueIfComplete(), NUnit.Engine.Tests.AsyncTestEngineResultTests.SetResult_ThrowsIfNull(), NUnit.Engine.Tests.AsyncTestEngineResultTests.SetResult_ThrowsIfSetTwice(), NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_AllowsMultipleWaits(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_ReturnsFalseTillTestCompletes().
|
inline |
Blocks the current thread until the current test run completes or the timeout is reached
timeout | A T:System.Int32 that represents the number of milliseconds to wait, or -1 milliseconds to wait indefinitely. |
Implements NUnit.Engine.ITestRun.
Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_AllowsMultipleWaits(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_ReturnsFalseTillTestCompletes().
|
inlineprivate |
Blocks the current thread until the current test run completes or the timeout is reached
timeout | A T:System.Int32 that represents the number of milliseconds to wait or -1 milliseconds to wait indefinitely. |
Implements NUnit.Engine.ITestRun.
|
private |
|
private |
|
get |
Get the result of this run.
InvalidOperationException | Cannot retrieve Result from an incomplete or cancelled TestRun. |
Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.Result_ThrowsIfNotSet(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.Wait_ReturnsFalseTillTestCompletes().
|
get |
|
get |
True if the test run has completed
Referenced by NUnit.Engine.Tests.AsyncTestEngineResultTests.IsComplete_FalseIfNotComplete(), and NUnit.Engine.Tests.AsyncTestEngineResultTests.IsComplete_TrueIfComplete().
|
getprivate |