コード例 #1
0
        public TestEventCatcher( ITestEvents source )
        {
            events = new TestEventArgsCollection();

            source.ProjectLoading	+= new TestEventHandler( OnTestEvent );
            source.ProjectLoaded	+= new TestEventHandler( OnTestEvent );
            source.ProjectLoadFailed+= new TestEventHandler( OnTestEvent );
            source.ProjectUnloading	+= new TestEventHandler( OnTestEvent );
            source.ProjectUnloaded	+= new TestEventHandler( OnTestEvent );
            source.ProjectUnloadFailed+= new TestEventHandler( OnTestEvent );

            source.TestLoading		+= new TestEventHandler( OnTestEvent );
            source.TestLoaded		+= new TestEventHandler( OnTestEvent );
            source.TestLoadFailed	+= new TestEventHandler( OnTestEvent );

            source.TestUnloading	+= new TestEventHandler( OnTestEvent );
            source.TestUnloaded		+= new TestEventHandler( OnTestEvent );
            source.TestUnloadFailed	+= new TestEventHandler( OnTestEvent );

            source.TestReloading	+= new TestEventHandler( OnTestEvent );
            source.TestReloaded		+= new TestEventHandler( OnTestEvent );
            source.TestReloadFailed	+= new TestEventHandler( OnTestEvent );

            source.RunStarting		+= new TestEventHandler( OnTestEvent );
            source.RunFinished		+= new TestEventHandler( OnTestEvent );

            source.TestStarting		+= new TestEventHandler( OnTestEvent );
            source.TestFinished		+= new TestEventHandler( OnTestEvent );

            source.SuiteStarting	+= new TestEventHandler( OnTestEvent );
            source.SuiteFinished	+= new TestEventHandler( OnTestEvent );
        }
コード例 #2
0
        public TestEventCatcher(ITestEvents source)
        {
            events = new TestEventArgsCollection();

            source.ProjectLoading      += new TestEventHandler(OnTestEvent);
            source.ProjectLoaded       += new TestEventHandler(OnTestEvent);
            source.ProjectLoadFailed   += new TestEventHandler(OnTestEvent);
            source.ProjectUnloading    += new TestEventHandler(OnTestEvent);
            source.ProjectUnloaded     += new TestEventHandler(OnTestEvent);
            source.ProjectUnloadFailed += new TestEventHandler(OnTestEvent);

            source.TestLoading    += new TestEventHandler(OnTestEvent);
            source.TestLoaded     += new TestEventHandler(OnTestEvent);
            source.TestLoadFailed += new TestEventHandler(OnTestEvent);

            source.TestUnloading    += new TestEventHandler(OnTestEvent);
            source.TestUnloaded     += new TestEventHandler(OnTestEvent);
            source.TestUnloadFailed += new TestEventHandler(OnTestEvent);

            source.TestReloading    += new TestEventHandler(OnTestEvent);
            source.TestReloaded     += new TestEventHandler(OnTestEvent);
            source.TestReloadFailed += new TestEventHandler(OnTestEvent);

            source.RunStarting += new TestEventHandler(OnTestEvent);
            source.RunFinished += new TestEventHandler(OnTestEvent);

            source.TestStarting += new TestEventHandler(OnTestEvent);
            source.TestFinished += new TestEventHandler(OnTestEvent);

            source.SuiteStarting += new TestEventHandler(OnTestEvent);
            source.SuiteFinished += new TestEventHandler(OnTestEvent);
        }