public void PopulateFacade(TestTreeNodeFacade rfacade) { try { if (rfacade == null) { throw new ArgumentNullException("rfacade"); } if (this.facade != null) { this.facade.Changed -= new ResultEventHandler(rfacade.Changed); } this.facade = new RemotedTestTreeNodeFacade(); this.facade.Changed += new ResultEventHandler(rfacade.Changed); foreach (Fixture fixture in this.Explorer.FixtureGraph.Fixtures) { foreach (RunPipeStarter starter in fixture.Starters) { starter.Listeners.Add(this.facade); rfacade.AddPipe(starter.Pipe.Identifier); } } } catch (Exception ex) { ReportException rex = ReportException.FromException(ex); ReportExceptionException rexe = new ReportExceptionException( "Error while populating facade of " + this.TestAssembly.FullName, rex); throw rexe; } }
public override void Dispose() { base.Dispose(); this.facade.Clear(); this.facade = null; this.guidNodes = null; this.populators = null; this.parentNode = null; }
public void PopulateFacade(TestTreeNodeFacade rfacade) { try { if (rfacade==null) throw new ArgumentNullException("rfacade"); if (this.facade != null) { this.facade.Changed -= new ResultEventHandler(rfacade.Changed); } this.facade=new RemotedTestTreeNodeFacade(); this.facade.Changed += new ResultEventHandler(rfacade.Changed); foreach (Fixture fixture in this.Explorer.FixtureGraph.Fixtures) { foreach (RunPipeStarter starter in fixture.Starters) { starter.Listeners.Add(this.facade); rfacade.AddPipe(starter.Pipe.Identifier); } } } catch (Exception ex) { ReportException rex = ReportException.FromException(ex); ReportExceptionException rexe = new ReportExceptionException( "Error while populating facade of " + this.TestAssembly.FullName, rex); throw rexe; } }