Пример #1
0
        public void Process_handles_missing_tokens()
        {
            var input  = "The $animal$ goes $sound$.";
            var tokens = new Dictionary <string, string>
            {
                { "animal", "cow" }
            };

            var output = new powershell::System.Data.Entity.Migrations.Utilities.TemplateProcessor().Process(input, tokens);

            Assert.Equal(output, "The cow goes .");
        }
Пример #2
0
        public void Process_handles_missing_tokens()
        {
            var input = "The $animal$ goes $sound$.";
            var tokens = new Dictionary<string, string>
                             {
                                 { "animal", "cow" }
                             };

            var output = new powershell::System.Data.Entity.Migrations.Utilities.TemplateProcessor().Process(input, tokens);

            Assert.Equal(output, "The cow goes .");
        }