public void blows_up_when_a_nuspec_dependency_does_not_exist() { var map = new NuspecMap { PackageId = "Something", PublishedBy = "Something", DependsOn = "SomeProject2" }; Exception<InvalidOperationException>.ShouldBeThrownBy(() => map.ToSpec(theSolution)); }
public void maps_the_nuspec_dependencies() { var map = new NuspecMap { PackageId = "AnotherProject", PublishedBy = "AnotherProject", DependsOn = "Something" }; var spec = map.ToSpec(theSolution); spec.Dependencies.Single().Name.ShouldEqual("Something"); }
public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.Publishes("Something"); test.Publishes("SomeProject"); test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed); test.ProjectDependency("SomeProject", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theMap = new NuspecMap { File = "Something.nuspec", Project = "SomeProject" }; }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.Publishes("Something"); test.Publishes("SomeProject"); test.Publishes("AnotherProject"); test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed); test.ProjectDependency("SomeProject", "FubuCore"); test.ProjectDependency("AnotherProject", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theMap = new NuspecMap { PackageId = "Something", PublishedBy = "SomeProject" }; }
public void AddNuspec(NuspecMap map) { _nuspecMaps.Add(map); }