public void PostProcessing_Test() { var context = Substitute.For <IGlobalContext>(); _instance.PostProcessing(context); context.Received(1).AddCss(TableOfContentPlugin.CSS(_config.ParagraphTocCssClass, _config.SpacerCssClass)); }
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 }); }