private void ApplyCategoryAndIgnoreIfSet(INativeTest result) { if (_ignoreReason != null) { result.MarkTestIgnored(_ignoreReason); } foreach (var category in _accumulatedCategories) { result.AddCategory(category); } }
public void AddCategory(string category) { var invalidReason = Validate.CheckForCategoryError(category); if (invalidReason != null) { _nativeTest.MarkTestInvalid(invalidReason); } else { _nativeTest.AddCategory(category); } }