public void Reflect(RunInvokerTree tree, RunInvokerVertex parent, Type t) { FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker( this, this.exception ); tree.AddChild(parent,invoker); }
private void Reflect() { try { this.LoadFixtureDecorators(); this.Fixture.Run.Reflect(this, this.Root, this.Fixture.Type); } catch (Exception ex) { this.Graph.Clear(); this.CreateRoot(); FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker(this.Fixture.Run, ex); this.AddChild(this.Root, invoker); } }
protected virtual void PopulateInvokerTree( RunInvokerTree tree, RunInvokerVertex parent, Type t ) { if (this.AllowMultiple) { foreach(MethodInfo mi in TypeHelper.GetAttributedMethods(t,this.AttributeType)) { try { if (this.Checker!=null) this.Checker.Check(mi); IRunInvoker invoker = InstanceInvoker(mi); RunInvokerVertex child = tree.AddChild(parent,invoker); } catch(Exception ex) { FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker( this,ex); tree.AddChild(parent,invoker); } } } else { try { MethodInfo mi = TypeHelper.GetAttributedMethod(t,this.AttributeType); if (this.Checker!=null) this.Checker.Check(mi); tree.AddChild(parent, new MethodRunInvoker(this,mi)); } catch(Exception ex) { FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker( this,ex); tree.AddChild(parent,invoker); } } }
private void Reflect() { try { this.LoadFixtureDecorators(); this.Fixture.Run.Reflect(this, this.Root, this.Fixture.Type); } catch (Exception ex) { this.Graph.Clear(); this.CreateRoot(); FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker(this.Fixture.Run,ex); this.AddChild(this.Root, invoker); } }
public void CallFailedLoading() { FailedLoadingRunInvoker invoker = new FailedLoadingRunInvoker(new MockRun(),new Exception()); invoker.Execute(null, new ArrayList()); }