public void TestEmpty() { var result = new String(); result.Append("<td>"); result.Append("</td>"); _builder = new BoolColumnBuilder("", null); _builder.Init(); Assert.Equal(result.ToString(), _builder.ToString()); }
public void TestContent() { var result = new String(); result.Append("<td>"); result.Append("content"); result.Append("</td>"); var content = new DefaultTagHelperContent(); content.AppendHtml("content"); _builder = new BoolColumnBuilder("a", content); _builder.Init(); Assert.Equal(result.ToString(), _builder.ToString()); }
/// <summary> /// 测试初始化 /// </summary> public BoolColumnBuilderTest() { _builder = new BoolColumnBuilder("a", null); _builder.Init(); }