public void calling_ProcessTargetsCustomTargetsTemplate_should_save_the_template_on_disk()
        {
            var cont = new ApplicationController(new[] { "-p", "My App", "-o", "." });

            var config = cont.ProcessTargetsCustomTargetsTemplate();

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

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

            templateRes.CountOcurrences(config.Context.CurrentOptions.ProductName).Should().Be(4);
        }