Esempio n. 1
0
        public void SetUp()
        {
            n1 = new StubNugetFile(new Dependency("FubuCore", "1.0.0.1"));
            n2 = new StubNugetFile(new Dependency("Bottles", "1.2.0.1"));
            n3 = new StubNugetFile(new Dependency("FubuMVC.Core", "1.1.0.1"));

            theDependencies = new LocalDependencies(new[] { n1, n2, n3 });
        }
Esempio n. 2
0
        public void local_dependencies()
        {
            var solution = new Solution();
            var storage  = MockRepository.GenerateStub <INugetStorage>();

            var dependencies = new LocalDependencies(new[] { new NugetFile("Bottles.1.0.1.252.nupkg", SolutionMode.Ripple) });

            storage.Stub(x => x.Dependencies(solution)).Return(dependencies);

            solution.UseStorage(storage);

            solution.LocalDependencies().ShouldEqual(dependencies);
        }