Constructors
-
Test
Method protected Initializes a new instance of the TestMethodRunner`1 class.Runner`1(ITest Method, IReflection Type Info, IReflection Method Info, IEnumerable<`0>, IMessage Bus, Exception Aggregator, Cancellation Token Source)
Methods
-
After
Test protectedvirtual This method is called just after ITestMethodStarting is sent, but before any test cases are run. This method should NEVER throw; any exceptions should be placed into the Aggregator.Method Starting() -
Before
Test protectedvirtual This method is called just before ITestMethodFinished is sent. This method should NEVER throw; any exceptions should be placed into the Aggregator.Method Finished() -
Run
Async() Runs the tests in the test method. -
Run
Test protectedabstract Override this method to run an individual test case.Case Async(`0) -
Run
Test protectedvirtual Runs the list of test cases. By default, it runs the cases in order, synchronously.Cases Async()
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 test method.
-
Message
Bus protected Gets or sets the message bus to report run status to. - Method protected Gets or sets the CLR method that contains the tests to be run.
-
Test
Cases protected Gets or sets the test cases to be run. -
Test
Method protected Gets or sets the test method that contains the test cases.