Serenity.Jasmine.SpecificationGraph.FindSpecNode C# (CSharp) Method

FindSpecNode() public method

public FindSpecNode ( Serenity.Jasmine.SpecPath path ) : ISpecNode
path Serenity.Jasmine.SpecPath
return ISpecNode
        public ISpecNode FindSpecNode(SpecPath path)
        {
            if (path.FullName.IsEmpty()) return this;

            var fullName = path.FullName;
            return AllNodes.FirstOrDefault(x => x.FullName == fullName);
        }

Usage Example

Ejemplo n.º 1
0
        public HtmlDocument Spec(SpecPath path)
        {
            _document.Title = Title + ":  " + path.Parts.Join("/");

            var node = _specifications.FindSpecNode(path);

            writeNode(node);

            return(_document);
        }