예제 #1
0
        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));
        }
예제 #2
0
        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");
        }
예제 #3
0
        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"
                };
        }
예제 #4
0
        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"
            };
        }
예제 #5
0
 public void AddNuspec(NuspecMap map)
 {
     _nuspecMaps.Add(map);
 }
예제 #6
0
 public void AddNuspec(NuspecMap map)
 {
     _nuspecMaps.Add(map);
 }