Example #1
0
        public void TestTemplateWriter()
        {
            var writer = new TemplateWriter("one {two} three {four} five {six} seven");

            writer.Add("two", "too");
            writer.Add("two", "2");
            var result = writer.ToString();

            Assert.AreEqual("one 2 three  five  seven", result);
        }
            public void Must_call_delegate()
            {
                _writer.ToString();

                Assert.That(_delegateInvoked, Is.True);
            }