Пример #1
0
        public TestOutcome GetLastTestOutcome(int testPlanId, int suiteId, int testId, int configurationId)
        {
            ITestPlan            plan = TfsShared.Instance.SourceTestProject.TestPlans.Find(testPlanId);
            ITestPointCollection tpc  = plan.QueryTestPoints("SELECT * FROM TestPoint WHERE SuiteId = " + suiteId);
            var testPoints            = tpc.FirstOrDefault(t => t.TestCaseId.Equals(testId) && t.ConfigurationId.Equals(configurationId));

            if (testPoints == null)
            {
                return(TestOutcome.None);
            }

            return(testPoints.MostRecentResultOutcome);
        }