private IRun CreateRun(IFramework framework) { if (framework == null) { throw new ArgumentNullException("framework"); } SequenceRun runs = new SequenceRun(); // SetUp OptionalMethodRun setup = new OptionalMethodRun(framework.SetUpAttributeType, false); runs.Runs.Add(setup); // Test FrameworkMethodRun test = new FrameworkMethodRun(framework); runs.Runs.Add(test); // TearDown OptionalMethodRun tearDown = new OptionalMethodRun(framework.TearDownAttributeType, false); runs.Runs.Add(tearDown); return(runs); }
public FrameworkMethodRunInvoker(FrameworkMethodRun run, IFramework framework, MethodInfo method) : base(run) { if (framework == null) { throw new ArgumentNullException("framework"); } if (method == null) { throw new ArgumentNullException("mi"); } this.framework = framework; this.method = method; this.Inspect(); }
private IRun CreateRun(IFramework framework) { if (framework == null) throw new ArgumentNullException("framework"); SequenceRun runs = new SequenceRun(); // SetUp OptionalMethodRun setup = new OptionalMethodRun(framework.SetUpAttributeType, false); runs.Runs.Add(setup); // Test FrameworkMethodRun test = new FrameworkMethodRun(framework); runs.Runs.Add(test); // TearDown OptionalMethodRun tearDown = new OptionalMethodRun(framework.TearDownAttributeType, false); runs.Runs.Add(tearDown); return runs; }
public FrameworkMethodRunInvoker(FrameworkMethodRun run, IFramework framework, MethodInfo method) : base(run) { if (framework == null) throw new ArgumentNullException("framework"); if (method == null) throw new ArgumentNullException("mi"); this.framework = framework; this.method = method; this.Inspect(); }