public void visitIgnoreBecause(IgnoreElement element, TestPosition position) { if (_accumulatedDescendants.Count > 0) { _ignoreReason = element.Reason; } else { _parent.MarkTestIgnored(element.Reason); } }
private void ApplyCategoryAndIgnoreIfSet(INativeTest result) { if (_ignoreReason != null) { result.MarkTestIgnored(_ignoreReason); } foreach (var category in _accumulatedCategories) { result.AddCategory(category); } }
public void MarkTestIgnored(string reasonIgnored) { if (String.IsNullOrEmpty(_reasonIgnored)) { _reasonIgnored = reasonIgnored; } else { _reasonIgnored = _reasonIgnored + ", " + reasonIgnored; } _nativeTest.MarkTestIgnored(_reasonIgnored); }