コード例 #1
0
 public void visitIgnoreBecause(IgnoreElement element, TestPosition position)
 {
     if (_accumulatedDescendants.Count > 0)
     {
         _ignoreReason = element.Reason;
     }
     else
     {
         _parent.MarkTestIgnored(element.Reason);
     }
 }
コード例 #2
0
        private void ApplyCategoryAndIgnoreIfSet(INativeTest result)
        {
            if (_ignoreReason != null)
            {
                result.MarkTestIgnored(_ignoreReason);
            }

            foreach (var category in _accumulatedCategories)
            {
                result.AddCategory(category);
            }
        }
コード例 #3
0
        public void MarkTestIgnored(string reasonIgnored)
        {
            if (String.IsNullOrEmpty(_reasonIgnored))
            {
                _reasonIgnored = reasonIgnored;
            }
            else
            {
                _reasonIgnored = _reasonIgnored + ", " + reasonIgnored;
            }

            _nativeTest.MarkTestIgnored(_reasonIgnored);
        }