Alpinely.TownCrier.Tests.TemplateParserTests.ExceptionThrownIfValueNotSuppliedForToken C# (CSharp) Méthode

ExceptionThrownIfValueNotSuppliedForToken() private méthode

private ExceptionThrownIfValueNotSuppliedForToken ( ) : void
Résultat 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);
        }