public void Process_handles_missing_tokens() { var input = "The $animal$ goes $sound$."; var tokens = new Dictionary<string, string> { { "animal", "cow" } }; var output = new TemplateProcessor().Process(input, tokens); Assert.Equal(output, "The cow goes ."); }
public void Process_handles_missing_tokens() { var input = "The $animal$ goes $sound$."; var tokens = new Dictionary <string, string> { { "animal", "cow" } }; var output = new TemplateProcessor().Process(input, tokens); Assert.Equal(output, "The cow goes ."); }
public void Process_replaces_tokens() { var input = "The $animal$ goes $sound$."; var tokens = new Dictionary<string, string> { { "animal", "cow" }, { "sound", "moo" } }; var output = new TemplateProcessor().Process(input, tokens); Assert.Equal(output, "The cow goes moo."); }
public void Process_replaces_tokens() { var input = "The $animal$ goes $sound$."; var tokens = new Dictionary <string, string> { { "animal", "cow" }, { "sound", "moo" } }; var output = new TemplateProcessor().Process(input, tokens); Assert.Equal(output, "The cow goes moo."); }