Пример #1
0
        public void continues_to_next_feed_when_finding_latest_and_an_exception_occurs()
        {
            var storage = new StubNugetStorage();
            storage.Add("Bottles", "0.9.9.9");

            theSolution.UseStorage(storage);

            theFeedService.LatestFor(theSolution, new Dependency("Bottles", "1.0.0.0")).ShouldNotBeNull();
        }
Пример #2
0
        public void continues_to_next_feed_when_finding_latest_and_an_exception_occurs()
        {
            var storage = new StubNugetStorage();

            storage.Add("Bottles", "0.9.9.9");

            theSolution.UseStorage(storage);

            theFeedService.LatestFor(theSolution, new Dependency("Bottles", "1.0.0.0")).ShouldNotBeNull();
        }
        public void SetUp()
        {
            theStorage = new StubNugetStorage();
            theStorage.Add("FubuCore", "1.0.0.0");
            theStorage.Add("Bottles", "1.0.0.0");
            theStorage.Add("StructureMap", "2.6.3");

            theSolution = Solution.Empty();
            theSolution.AddDependency(new Dependency("FubuCore", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("FubuLocalization", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
            theSolution.AddFeed(Feed.Fubu);
            theSolution.UseStorage(theStorage);

            FeedScenario.Create(scenario =>
            {
                scenario
                    .For(Feed.Fubu)
                    .Add("StructureMap", "2.6.4.54");
            });
        }
        public void SetUp()
        {
            theStorage = new StubNugetStorage();
            theStorage.Add("FubuCore", "1.0.0.0");
            theStorage.Add("Bottles", "1.0.0.0");
            theStorage.Add("FubuLocalization", "1.0.0.0");

            theSolution = new Solution();
            theSolution.AddDependency(new Dependency("FubuCore", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("FubuLocalization", "1.0.0.0"));
            theSolution.AddFeed(new Feed("local"));
            theSolution.UseStorage(theStorage);

            FeedScenario.Create(scenario =>
            {
                scenario.For(new Feed("local"))
                    .Add("FubuCore", "1.0.0.1")
                    .Add("Bottles", "1.0.0.0");
            });
        }
Пример #5
0
        public void get_nuget_directory()
        {
            var solution = new Solution
            {
                SourceFolder = "source",
                Directory    = ".".ToFullPath()
            };

            var storage = new StubNugetStorage();

            storage.Add("FubuCore", "0.9.1.37");
            solution.UseStorage(storage);

            var project    = new Project("something.csproj");
            var dependency = new Dependency("FubuCore", "0.9.1.37");

            project.AddDependency(dependency);
            solution.AddProject(project);

            var spec = new NugetSpec("FubuCore", "somefile.nuspec");

            solution.NugetFolderFor(spec)
            .ShouldEqual(".".ToFullPath().AppendPath(solution.PackagesDirectory(), "FubuCore"));
        }
 public void latest_for_floated_nuget_with_local_dependency()
 {
     theStorage.Add("FubuCore", "1.2.0.0");
     theFeedService.LatestFor(theSolution, theSolution.FindDependency("FubuCore")).ShouldBeNull();
 }
Пример #7
0
        public void get_nuget_directory()
        {
            var solution = new Solution
            {
                SourceFolder = "source",
                Directory = ".".ToFullPath()
            };

            var storage = new StubNugetStorage();
            storage.Add("FubuCore", "0.9.1.37");
            solution.UseStorage(storage);

            var project = new Project("something.csproj");
            var dependency = new Dependency("FubuCore", "0.9.1.37");
            project.AddDependency(dependency);
            solution.AddProject(project);

            var spec = new NugetSpec("FubuCore", "somefile.nuspec");

            solution.NugetFolderFor(spec)
                .ShouldEqual(".".ToFullPath().AppendPath(solution.PackagesDirectory(), "FubuCore"));

        }