예제 #1
0
 public void PreprareTestLoader()
 {
     // arrange
     mockWatcher = new MockAssemblyWatcher2();
     testLoader  = new TestLoader(mockWatcher);
     testLoader.LoadProject(assembly);
 }
예제 #2
0
        private PlugsterWindow2()
        {
            InitExceptionHandler();

            InitializeComponent();

            InitLAF();

            //TODO: create a separate test loader
            testLoader = this;

            this.Load += new System.EventHandler(this.PlugsterWindow2_Load);
            //this.Disposed += new System.EventHandler(this.PlugsterWindow2_Disposed);

            InitHotKey();

            InitPlugLoader();

            testsListPanel.TestLoader = testLoader;

            testsHolderControls = new List <ITestsHolderControl>();
            testsHolderControls.Add(testsListPanel);

            //TODO:Handle this in a diff place.
            showHidePanelAppDom.FilterListBox.ItemDeleted += new FilterListControl.DeleteHandler(this.DeleteAppDom);
        }
예제 #3
0
        public void Initialize(ITestLoader loader, ITestEvents events)
        {
            this.loader = loader;

            events.TestLoaded   += new TestEventHandler(OnTestLoaded);
            events.TestReloaded += new TestEventHandler(OnTestChanged);
            events.TestUnloaded += new TestEventHandler(OnTestUnloaded);

            events.RunStarting   += new TestEventHandler(OnRunStarting);
            events.RunFinished   += new TestEventHandler(OnRunFinished);
            events.TestFinished  += new TestEventHandler(OnTestResult);
            events.SuiteFinished += new TestEventHandler(OnTestResult);
        }
예제 #4
0
파일: TestRunner.cs 프로젝트: he-dev/gunter
 public TestRunner
 (
     ILogger <TestRunner> logger,
     IResourceProvider resourceProvider,
     ITestLoader testLoader,
     ITestComposer testComposer,
     RuntimeFormatter.Factory createRuntimeFormatter
 )
 {
     _createRuntimeFormatter = createRuntimeFormatter;
     _logger       = logger;
     _testLoader   = testLoader;
     _testComposer = testComposer;
 }
예제 #5
0
        public void Initialize( ITestLoader loader, ITestEvents events )
        {
            this.loader = loader;

            events.TestLoaded	+= new TestEventHandler( OnTestLoaded );
            events.TestReloaded	+= new TestEventHandler( OnTestChanged );
            events.TestUnloaded	+= new TestEventHandler( OnTestUnloaded );

            events.RunStarting	+= new TestEventHandler( OnRunStarting );
            events.RunFinished	+= new TestEventHandler( OnRunFinished );
            events.TestFinished	+= new TestEventHandler( OnTestResult );
            events.SuiteFinished+= new TestEventHandler( OnTestResult );
        }
예제 #6
0
 public TestLoaderUI(Form owner, ITestLoader loader)
 {
     this.owner  = owner;
     this.loader = loader;
 }
예제 #7
0
 public TestsHolderListPanel(ITestLoader loader)
     : this()
 {
     this.testLoader = loader;
 }