/// <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; }
/// <summary> /// Gets the command to be executed after all of the /// child tests are run. /// </summary> /// <returns>A TestCommand</returns> public virtual TestCommand GetOneTimeTearDownCommand() { TestCommand command = new OneTimeTearDownCommand(this); return command; }