public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.Publishes("MyProject"); test.Publishes("AnotherProject"); test.SolutionDependency("Bottles", "1.1.0.0", UpdateMode.Fixed); test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Float); test.SolutionDependency("FubuLocalization", "1.8.0.0", UpdateMode.Fixed); test.LocalDependency("Bottles", "1.1.0.255"); test.LocalDependency("FubuCore", "1.0.1.244"); test.LocalDependency("FubuLocalization", "1.8.0.0"); test.ProjectDependency("MyProject", "Bottles"); test.ProjectDependency("MyProject", "FubuCore"); test.ProjectDependency("MyProject", "FubuLocalization"); test.ProjectDependency("AnotherProject", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theSolution.FindProject("AnotherProject").AddProjectReference(theSolution.FindProject("MyProject")); var templates = new NuspecTemplateFinder().Templates(theSolution); var current = templates.FindByProject("AnotherProject"); theContext = new NuspecTemplateContext(current, templates, theSolution, new SemanticVersion("1.1.0.0")); theTokens = new ProjectDependenciesSource().DetermineDependencies(theContext); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.Publishes("SomethingElse"); test.Publishes("SomeProject"); test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed); test.ProjectDependency("SomeProject", "FubuCore"); test.ProjectDependency("Something", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theSolution.AddNuspec(new NuspecMap { PackageId = "SomethingElse", PublishedBy = "Something" }); theFinder = new NuspecTemplateFinder(); }