public WorkspaceTestGroup(Workspace ws) : base(ws.Name, ws) { string storeId = ws.Name; string resultsPath = UnitTestService.GetTestResultsDirectory(ws.BaseDirectory); ResultsStore = new BinaryResultsStore(resultsPath, storeId); workspace = ws; workspace.ItemAdded += OnEntryChanged; workspace.ItemRemoved += OnEntryChanged; workspace.NameChanged += OnCombineRenamed; }
public SolutionFolderTestGroup(SolutionFolder c) : base(c.Name, c) { string storeId = c.ItemId; string resultsPath = UnitTestService.GetTestResultsDirectory(c.BaseDirectory); ResultsStore = new BinaryResultsStore(resultsPath, storeId); folder = c; folder.NameChanged += OnCombineRenamed; if (c.IsRoot) { folder.ParentSolution.SolutionItemAdded += OnEntryChanged; folder.ParentSolution.SolutionItemRemoved += OnEntryChanged; } }