コード例 #1
0
        public DerefereeProcessor(string resultsPath)
        {
            results = new DerefereeResults();

            try
            {
                using (TextReader textReader = File.OpenText(resultsPath))
                using (XmlReader reader = XmlReader.Create(textReader))
                {
                    XmlDocument document = new XmlDocument();
                    document.Load(reader);

                    ProcessDocument(document);
                }
            }
            catch (Exception e)
            {
                // Handle this.
            }
        }
コード例 #2
0
        public DerefereeProcessor(string resultsPath)
        {
            results = new DerefereeResults();

            try
            {
                using (TextReader textReader = File.OpenText(resultsPath))
                    using (XmlReader reader = XmlReader.Create(textReader))
                    {
                        XmlDocument document = new XmlDocument();
                        document.Load(reader);

                        ProcessDocument(document);
                    }
            }
            catch (Exception e)
            {
                // Handle this.
            }
        }
コード例 #3
0
        public void RefreshFromLastRun()
        {
            containingProject = CxxTestPackage.Instance.LastRunProject;
            suiteResults = CxxTestPackage.Instance.SuiteResultsOfLastRun;
            derefereeResults = CxxTestPackage.Instance.DerefereeResultsOfLastRun;

            if(hierarchyButton.Checked)
                SwitchToHierarchyView();
            else
                hierarchyButton.Checked = true;

            int total, failures, errors;
            CountTestCases(out total, out failures, out errors);

            testResultsProgress.Minimum = 0;
            testResultsProgress.Maximum = total;
            testResultsProgress.Value = total - failures - errors;
            testResultsProgress.Mode = PassFailBarMode.Bar;

            runsLabel.Text = string.Format("Runs: {0}", total);
            errorsLabel.Text = string.Format("Errors: {0}", errors);
            failuresLabel.Text = string.Format("Failures: {0}", failures);
        }