Example #1
0
        public void EvalText_GetResult_return_text()
        {
            var model             = new Model(null);
            var templateEvaluator = new TemplateEvaluator(model);

            var element = new TextTemplateElement("123");

            templateEvaluator.EvalText(element);

            string result = templateEvaluator.GetResult();

            Assert.AreEqual("123", result);
        }
 internal override void Accept(TemplateEvaluator evaluator)
 {
     evaluator.EvalText(this);
 }