/// <summary> /// 验证结果 /// </summary> private void AssertResult(string options = "") { var result = new Str(); result.Add("<div data-options=\"{0}\">", options); Assert.AreEqual(result.ToString(), _writer.GetResult()); }
/// <summary> /// 断言结果 /// </summary> private void AssertResult(string options, string end = "") { var result = new Str(); result.Add("<form {0}>{1}", options, end); Assert.AreEqual(result.ToString(), _writer.GetResult()); }
public void TestDefault() { Assert.AreEqual("", _writer.GetResult()); }
public void TestBegin() { _layout.Begin(); Assert.AreEqual("<div class=\"easyui-layout\">", _writer.GetResult()); }