Alpinely.TownCrier.Tests.TemplateParserTests.ExceptionThrownIfValueNotSuppliedForToken C# (CSharp) Method

ExceptionThrownIfValueNotSuppliedForToken() private method

private ExceptionThrownIfValueNotSuppliedForToken ( ) : void
return void
        public void ExceptionThrownIfValueNotSuppliedForToken()
        {
            string inputText = "My name is {%=name%}";

            var values = new Dictionary<string, string> {{"Something", "Bill Gates"}};

            var parser = new TemplateParser();
            string outputText = parser.ReplaceTokens(inputText, values);
        }