public void Initialize() { _config = new TableOfContentConfig(); _instance = new TableOfContentPlugin(_config); _pNode = new HtmlNode { Start = 0, Tag = "p" }; _elementContext = Substitute.For <IElementContext>(); _elementContext.Nodes.Returns(new HtmlNode[] { _pNode }); }
public TableOfContentPlugin(TableOfContentConfig config) { _config = config; }