예제 #1
0
        /// <summary>
        /// 验证结果
        /// </summary>
        private void AssertResult(string options = "")
        {
            var result = new Str();

            result.Add("<div data-options=\"{0}\">", options);
            Assert.AreEqual(result.ToString(), _writer.GetResult());
        }
예제 #2
0
        /// <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());
        }
예제 #3
0
 public void TestDefault()
 {
     Assert.AreEqual("", _writer.GetResult());
 }
예제 #4
0
 public void TestBegin()
 {
     _layout.Begin();
     Assert.AreEqual("<div class=\"easyui-layout\">", _writer.GetResult());
 }