Constructors
-
Test
Class protected Initializes a new instance of the TestClassRunner`1 class.Runner`1(ITest Class, IReflection Type Info, IEnumerable<`0>, IMessage Sink, IMessage Bus, ITest Case Orderer, Exception Aggregator, Cancellation Token Source)
Methods
-
After
Test protectedvirtual This method is called just after ITestClassStarting is sent, but before any test methods are run. This method should NEVER throw; any exceptions should be placed into the Aggregator.Class Starting Async() -
Before
Test protectedvirtual This method is called just before ITestClassFinished is sent. This method should NEVER throw; any exceptions should be placed into the Aggregator.Class Finished Async() -
Create
Test protectedvirtual Creates the arguments for the test class constructor. Attempts to resolve each parameter individually, and adds an error when the constructor arguments cannot all be provided. If the class is static, does not look for constructor, since one will not be needed.Class Constructor Arguments() -
Format
Constructor protectedvirtual Gets the message to be used when the constructor is missing arguments.Args Missing Message(Constructor Info, IRead Only List<Tuple<Int32, Parameter Info>>) -
Run
Async() Runs the tests in the test class. -
Run
Test protectedabstract Override this method to run the tests in an individual test method.Method Async(ITest Method, IReflection Method Info, IEnumerable<`0>, Object[]) -
Run
Test protectedvirtual Runs the list of test methods. By default, orders the tests, groups them by method and runs them synchronously.Methods Async() -
Select
Test protectedvirtual Selects the constructor to be used for the test class. By default, chooses the parameterless constructor. Override to change the constructor selection logic.Class Constructor() -
Try
Get protectedvirtual Tries to supply a test class constructor argument. By default, always fails. Override to change the argument lookup logic.Constructor Argument(Constructor Info, Int32, Parameter Info, Object&)
Properties
- Aggregator protected Gets or sets the exception aggregator used to run code and collect exceptions.
-
Cancellation
Token protected Gets or sets the task cancellation token source, used to cancel the test run.Source - Class protected Gets or sets the CLR class that contains the tests to be run.
-
Diagnostic
Message protected Gets the message sink used to send diagnostic messages.Sink -
Message
Bus protected Gets or sets the message bus to report run status to. -
Test
Case protected Gets or sets the test case orderer that will be used to decide how to order the test.Orderer -
Test
Cases protected Gets or sets the test cases to be run. -
Test
Class protected Gets or sets the test class to be run.