Ejemplo n.º 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));
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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"
                };
        }
Ejemplo n.º 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"
            };
        }
Ejemplo n.º 5
0
 public void AddNuspec(NuspecMap map)
 {
     _nuspecMaps.Add(map);
 }
Ejemplo n.º 6
0
 public void AddNuspec(NuspecMap map)
 {
     _nuspecMaps.Add(map);
 }