private void UpdateCategoryFilter() { TestFilter catFilter; if (SelectedCategories == null || SelectedCategories.Length == 0) { catFilter = TestFilter.Empty; } else { catFilter = new NUnit.Core.Filters.CategoryFilter(SelectedCategories); } if (excludeCheckbox.Checked) { catFilter = new NUnit.Core.Filters.NotFilter(catFilter); } tests.CategoryFilter = catFilter; }
private void UpdateCategoryFilter() { TestFilter catFilter; if ( SelectedCategories == null || SelectedCategories.Length == 0 ) catFilter = TestFilter.Empty; else catFilter = new NUnit.Core.Filters.CategoryFilter( SelectedCategories ); if ( excludeCheckbox.Checked ) catFilter = new NUnit.Core.Filters.NotFilter( catFilter ); tests.CategoryFilter = catFilter; }