Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);

            var settings = Properties.Settings.Default;

            var setupsSection = (SetupsSection)ConfigurationManager.GetSection("pytestmon");
            var browserWriter = new BrowserWriter();
            var testResultParser = new TestResultParser();
            var testRunner = new TestRunner(testResultParser);
            var taskbarManager = TaskbarManager.Instance;
            var taskbarIcons = new TaskbarIcons();
            var testFolderMonitor = new TestFolderMonitor(browserWriter, testRunner);

            var form = new PyTestMonForm(setupsSection.SetupData, browserWriter, testFolderMonitor, settings.LastSetup, taskbarManager, taskbarIcons);

            Application.Run(form);

            testFolderMonitor.Dispose();

            settings.LastSetup = form.LastSetupName;
            settings.Save();
        }
Ejemplo n.º 2
0
 public TestRunner(TestResultParser testResultParser)
 {
     _testResultParser = testResultParser;
 }