コード例 #1
0
ファイル: Program.cs プロジェクト: xinmyname/pytestmon
        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();
        }
コード例 #2
0
ファイル: TestRunner.cs プロジェクト: xinmyname/pytestmon
 public TestRunner(TestResultParser testResultParser)
 {
     _testResultParser = testResultParser;
 }