private void DrawTests(Listing_Standard listing) { foreach (Assembly asm in FilteredExplorer.GetFilteredAssemblies()) { DrawAssemblyLine(listing, asm); } }
private void ToggleAllAssemblies(bool toggle) { foreach (Assembly asm in FilteredExplorer.GetFilteredAssemblies()) { assemblyVisibility[asm] = toggle; } }
private void ToggleAllTestSuites(bool toggle) { foreach (Assembly asm in FilteredExplorer.GetFilteredAssemblies()) { foreach (Type ts in FilteredExplorer.GetFilteredTestSuites(asm)) { testSuiteVisibility[ts] = toggle; } } }
public static void UpdateAssemblyStatusCount(AssemblyStatus status) { int value = FilteredExplorer .GetFilteredAssemblies() .Where((Assembly asm) => AssemblyExplorer.GetAssemblyStatus(asm) == status) .Count(); if (asmStatus2count.ContainsKey(status)) { asmStatus2count[status] = value; } else { asmStatus2count.Add(status, value); } }
private int CalcTotalHeight() { int count = 0; foreach (Assembly asm in FilteredExplorer.GetFilteredAssemblies()) { count += 1; if (!GetAssemblyVisibility(asm)) { continue; } foreach (Type ts in FilteredExplorer.GetFilteredTestSuites(asm)) { count += 1; if (!GetTestSuiteVisibility(ts)) { continue; } count += FilteredExplorer.GetFilteredTests(ts).EnumerableCount(); } } return(count * HEIGHT_ROW); }