コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: RemoteTestTree.cs プロジェクト: timonela/mb-unit
        public override void Dispose()
        {
            base.Dispose();

            this.facade.Clear();
            this.facade = null;
            this.guidNodes = null;
            this.populators = null;
            this.parentNode = null;
        }
コード例 #3
0
        public override void Dispose()
        {
            base.Dispose();

            this.facade.Clear();
            this.facade     = null;
            this.guidNodes  = null;
            this.populators = null;
            this.parentNode = null;
        }
コード例 #4
0
        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;
            }
        }