示例#1
0
        public void ProcessBeforeInterior(IElement element)
        {
            IElementHandler handler = _elementHandlers.Where(x => x.Accepts(element)).FirstOrDefault();

            if (handler == null)
            {
                return;
            }

            foreach (var elementDisposition in handler.AcceptElement(element, _file))
            {
                if (elementDisposition != null && elementDisposition.UnitTestElement != null)
                {
                    _consumer(elementDisposition);
                }
            }
        }
示例#2
0
        public void ProcessBeforeInterior(ITreeNode element)
        {
            IElementHandler handler = this._elementHandlers.FirstOrDefault(x => x.Accepts(element));

            if (handler == null)
            {
                return;
            }

            foreach (UnitTestElementDisposition elementDisposition in handler.AcceptElement(this._assemblyPath, this._file, element))
            {
                if (elementDisposition != null && elementDisposition.UnitTestElement != null)
                {
                    this._consumer.OnUnitTestElementDisposition(elementDisposition);
                }
            }
        }