Class TestRunnerConsoleHost
Hosts unit test runner in a console application. This host is NOT thread-safe
Inheritance
System.Object
TestRunnerConsoleHost
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public sealed class TestRunnerConsoleHost : ApplicationComponent, IRunnerHost, IApplicationComponent, IConfigurable, IDisposable
Constructors
TestRunnerConsoleHost(IApplication)
Declaration
public TestRunnerConsoleHost(IApplication app)
Parameters
Fields
FIRST_X_ERRORS
Declaration
public const int FIRST_X_ERRORS = 5
Field Value
Type |
Description |
System.Int32 |
|
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ConsoleError
Declaration
public TextWriter ConsoleError { get; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
ConsoleOut
Declaration
public TextWriter ConsoleOut { get; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
OutFileName
Declaration
[Config("$out|$file|$out-file")]
public string OutFileName { get; set; }
Property Value
Type |
Description |
System.String |
|
TotalErrors
Declaration
public int TotalErrors { get; }
Property Value
Type |
Description |
System.Int32 |
|
TotalMethods
Declaration
public int TotalMethods { get; }
Property Value
Type |
Description |
System.Int32 |
|
TotalOKs
Declaration
public int TotalOKs { get; }
Property Value
Type |
Description |
System.Int32 |
|
TotalRunnables
Declaration
public int TotalRunnables { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
AfterMethodRun(Runner, FID, MethodInfo, RunAttribute, Exception)
Declaration
public void AfterMethodRun(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
FID |
id |
|
System.Reflection.MethodInfo |
method |
|
RunAttribute |
attr |
|
System.Exception |
error |
|
BeforeMethodRun(Runner, FID, MethodInfo, RunAttribute)
Declaration
public void BeforeMethodRun(Runner runner, FID id, MethodInfo method, RunAttribute attr)
Parameters
BeginRunnable(Runner, FID, Object)
Declaration
public void BeginRunnable(Runner runner, FID id, object runnable)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
FID |
id |
|
System.Object |
runnable |
|
Declaration
public void Configure(IConfigSectionNode node)
Parameters
EndRunnable(Runner, FID, Object, Exception)
Declaration
public void EndRunnable(Runner runner, FID id, object runnable, Exception error)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
FID |
id |
|
System.Object |
runnable |
|
System.Exception |
error |
|
Start(Runner)
Declaration
public void Start(Runner runner)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
Summarize(Runner)
Declaration
public void Summarize(Runner runner)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
Implements
System.IDisposable
Extension Methods