ITestSuiteBase testSuite = teamProject.TestSuites.Find(suiteId); List<TFSItem> suiteList = new List<TFSItem>(); if (testSuite != null) { // this is the test plan if (testSuite.Parent == null) { suiteList.Add(new TFSItem(testSuite.Id.ToString(), testSuite.Title)); } else { var tempSuite = testSuite; while (tempSuite.Parent != null) { suiteList.Add(new TFSItem(tempSuite.Id.ToString(), tempSuite.Title)); tempSuite = tempSuite.Parent; } suiteList.Add(new TFSItem(tempSuite.Id.ToString(), tempSuite.Title)); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)