Exemplo n.º 1
0
        public void calling_ProcessPropertiesCustomPropertiesTemplate_should_save_the_template()
        {
            var cont = new ApplicationController(new[] { "-p", "My App", "-o", "." });

            var config = cont.ProcessPropertiesCustomPropertiesTemplate();

            config.Should().NotBeNull();
            File.Exists(config.Persistence.OutputTemplatePath).Should().BeTrue();
            config.Persistence.OutputTemplatePath.Should().Be(@".\Properties\My App.Properties.import");

            //testing that the template tokens were substituted correctly
            var templateRes = this.GetContentFromPersistedTemplate(config);
        }