public void calling_ProcessTargetsVersioningTargetsTemplate_should_save_the_template_on_disk() { var cont = new ApplicationController(new[] { "-p", "My App", "-o", "." }); var config = cont.ProcessTargetsVersioningTargetsTemplate(); 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\Build\My App.VersioningTargets.import"); }