public void calling_ProcessPropertiesInitPropertiesTemplate_should_save_the_template() { var cont = new ApplicationController(new[] { "-p", "My App", "-o", ".", "-s", this.GetType().Assembly.Location }); var config = cont.ProcessPropertiesInitPropertiesTemplate(); config.Should().NotBeNull(); File.Exists(config.Persistence.OutputTemplatePath).Should().BeTrue(); config.Persistence.OutputTemplatePath.Should().Be(@".\Properties\My App.InitProperties.import"); //testing that the template tokens were substituted correctly var templateRes = this.GetContentFromPersistedTemplate(config); templateRes.CountOcurrences(config.Context.CurrentOptions.ProductName).Should().Be(2); templateRes.CountOcurrences(config.Context.CurrentOptions.SolutionName).Should().Be(1); templateRes.Should().NotContain("{{ SolutionName }}"); }