示例#1
0
 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 });
 }
示例#2
0
 public TableOfContentPlugin(TableOfContentConfig config)
 {
     _config = config;
 }