/// <summary> /// Creates the execution logic /// </summary> /// <remarks> /// See summary. /// </remarks> /// <returns>A <see cref="IRun"/> instance that represent the type /// test logic. /// </returns> public override IRun GetRun() { SequenceRun runs = new SequenceRun(); // setup OptionalMethodRun setup = new OptionalMethodRun(typeof(SetUpAttribute),false); runs.Runs.Add( setup ); // process tests ProcessMethodRun test = new ProcessMethodRun(typeof(TestSequenceAttribute)); runs.Runs.Add(test); // tear down OptionalMethodRun tearDown = new OptionalMethodRun(typeof(TearDownAttribute),false); runs.Runs.Add(tearDown); return runs; }
/// <summary> /// Gets the test runner class defining all the tests to be run and the test logic to be used within the tagged fixture class. /// </summary> /// <returns>A <see cref="SequenceRun"/> object</returns> public override IRun GetRun() { SequenceRun runs = new SequenceRun(); // process tests ProcessMethodRun test = new ProcessMethodRun(typeof(TestSequenceAttribute)); runs.Runs.Add(test); return runs; }