public void calling_ProcessSolutionTemplate_should_save_the_Solution_template() { var cont = new ApplicationController(new[] { "-p", "My App", "-o", "." }); var config = cont.ProcessSolutionTemplate(); config.Should().NotBeNull(); File.Exists(config.Persistence.OutputTemplatePath).Should().BeTrue(); config.Persistence.OutputTemplatePath.Should().Be(@".\My App.BuildSolution.proj"); //testing that the template tokens were substituted correctly var templateRes = this.GetContentFromPersistedTemplate(config); templateRes.CountOcurrences(config.Context.CurrentOptions.ProductName).Should().Be(8); }