public static int Counter(this TestContainer container, TestStatus status) { return container.TestCategorys.Sum(cat => cat.AllTests.Sum(t => status.IsSet(t.Status) ? 1 : 0)); }