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.Framework.Api.ITestAssemblyRunner Interface Reference

The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly. More...

+ Inheritance diagram for NUnit.Framework.Api.ITestAssemblyRunner:

Public Member Functions

ITest Load (string assemblyName, System.Collections.IDictionary settings)
 Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded. More...
 
ITest Load (Assembly assembly, System.Collections.IDictionary settings)
 Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded. More...
 
int CountTestCases (ITestFilter filter)
 Count Test Cases using a filter More...
 
ITestResult Run (ITestListener listener, ITestFilter filter)
 Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses. More...
 
void RunAsync (ITestListener listener, ITestFilter filter)
 Run selected tests asynchronously, notifying the listener interface as it progresses. More...
 
bool WaitForCompletion (int timeout)
 Wait for the ongoing run to complete. More...
 
void StopRun (bool force)
 Signal any test run that is in process to stop. Return without error if no test is running. More...
 

Properties

ITest LoadedTest [get]
 Gets the tree of loaded tests, or null if no tests have been loaded. More...
 
ITestResult Result [get]
 Gets the tree of test results, if the test run is completed, otherwise null. More...
 
bool IsTestLoaded [get]
 Indicates whether a test has been loaded More...
 
bool IsTestRunning [get]
 Indicates whether a test is currently running More...
 
bool IsTestComplete [get]
 Indicates whether a test run is complete More...
 

Detailed Description

The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly.

Member Function Documentation

ITest NUnit.Framework.Api.ITestAssemblyRunner.Load ( string  assemblyName,
System.Collections.IDictionary  settings 
)

Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.

Parameters
assemblyNameFile name of the assembly to load
settingsDictionary of options to use in loading the test
Returns
An ITest representing the loaded tests

Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_AfterLoad_ReturnsCorrectCount(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_BadFile_ReturnsZero(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_FileNotFound_ReturnsZero(), NUnitLite.TextRunner.Execute(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_GoodFile_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Internal.SetUpFixtureTests.runTests(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().

ITest NUnit.Framework.Api.ITestAssemblyRunner.Load ( Assembly  assembly,
System.Collections.IDictionary  settings 
)

Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.

Parameters
assemblyThe assembly to load
settingsDictionary of options to use in loading the test
Returns
An ITest representing the loaded tests
ITestResult NUnit.Framework.Api.ITestAssemblyRunner.Run ( ITestListener  listener,
ITestFilter  filter 
)
void NUnit.Framework.Api.ITestAssemblyRunner.StopRun ( bool  force)

Property Documentation

ITest NUnit.Framework.Api.ITestAssemblyRunner.LoadedTest
get

Gets the tree of loaded tests, or null if no tests have been loaded.

Referenced by NUnitLite.TextRunner.ExploreTests().

bool NUnit.Framework.Api.ITestAssemblyRunner.IsTestLoaded
get

Indicates whether a test has been loaded

bool NUnit.Framework.Api.ITestAssemblyRunner.IsTestRunning
get

Indicates whether a test is currently running

bool NUnit.Framework.Api.ITestAssemblyRunner.IsTestComplete
get

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