/// <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(); // creating parallel ParallelRun para = new ParallelRun(); para.AllowEmpty = false; runs.Runs.Add(para); // method providers MethodRun provider = new MethodRun( typeof(ProviderAttribute), typeof(ArgumentFeederRunInvoker), false, true ); para.Runs.Add(provider); // fixture class provider FixtureDecoratorRun providerFactory = new FixtureDecoratorRun( typeof(ProviderFixtureDecoratorPatternAttribute) ); para.Runs.Add(providerFactory); // setup OptionalMethodRun setup = new OptionalMethodRun(typeof(SetUpAttribute), false); runs.Runs.Add(setup); // tests MethodRun test = new MethodRun(typeof(TestPatternAttribute), true, true); runs.Runs.Add(test); // tear down OptionalMethodRun tearDown = new OptionalMethodRun(typeof(TearDownAttribute), false); runs.Runs.Add(tearDown); return(runs); }
public static void ParallelRunAndWait <T>(this EventHandler <T> eventToRun, object sender, T variable) where T : EventArgs { _ = new ParallelRun <T>(eventToRun, sender, variable); }