Alpinely.TownCrier.Tests.TemplateParserTests.ExceptionThrownIfValueNotSuppliedForToken C# (CSharp) 메소드

ExceptionThrownIfValueNotSuppliedForToken() 개인적인 메소드

private ExceptionThrownIfValueNotSuppliedForToken ( ) : void
리턴 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);
        }