public void calling_ProcessTargetsRunTestsTargetsTemplate_should_save_the_template_on_disk() { var cont = new ApplicationController(new[] { "-p", "My App", "-o", "." }); var config = cont.ProcessTargetsRunTestsTargetsTemplate(); config.Should().NotBeNull(); File.Exists(config.Persistence.OutputTemplatePath).Should().BeTrue(); //testing that the template tokens were substituted correctly var templateRes = this.GetContentFromPersistedTemplate(config); config.Persistence.OutputTemplatePath.Should().Be(@".\Targets\Tests\My App.RunTestsTargets.import"); }