/// <summary> /// Gets the command to be executed after all the child /// tests are run. Overridden in ParameterizedMethodSuite /// to set the result to failure if all the child tests /// were inconclusive. /// </summary> /// <returns></returns> public override TestCommand GetOneTimeTearDownCommand() { TestCommand command = base.GetOneTimeTearDownCommand(); if (_isTheory) command = new TheoryResultCommand(command); return command; }
/// <summary> /// Gets the command to be executed after all of the /// child tests are run. /// </summary> /// <returns>A TestCommand</returns> private static TestCommand MakeTearDownCommand(TestSuite suite, SetUpTearDownList setUpTearDown) { TestCommand command = new OneTimeTearDownCommand(suite, setUpTearDown); if (suite.TestType == "Theory") command = new TheoryResultCommand(command); return command; }