Exemplo n.º 1
0
        public void Render(string sourceText, string expected)
        {
            var storage = new VariableStorage();
            storage["empty"] = "";
            storage["name1"] = "value1";
            storage["name2"] = "value2";

            var renderedText = new ValueRenderer(sourceText).Render(storage);

            Assert.AreEqual(expected, renderedText);
        }
Exemplo n.º 2
0
        public void Render(string sourceText, string expected)
        {
            var storage = new VariableStorage();

            storage["empty"] = "";
            storage["name1"] = "value1";
            storage["name2"] = "value2";

            var renderedText = new ValueRenderer(sourceText).Render(storage);

            Assert.AreEqual(expected, renderedText);
        }