Exemple #1
0
        public void finds_nuspecs_with_corresponding_projects()
        {
            var group = theInput.SpecsFor(theSolution).Single();

            group.Spec.Name.ShouldEqual("SomeProject");
            group.Projects.Single().ShouldBeTheSameAs(theSolution.FindProject("SomeProject"));
        }
        public void finds_nuspecs_with_corresponding_and_mapped_projects()
        {
            var groups = theInput.SpecsFor(theSolution).ToArray();

            var spec1 = groups[0].Spec;

            spec1.Name.ShouldEqual("SomeProject");

            var p1 = groups[0].Projects.Single();

            p1.ShouldBeTheSameAs(theSolution.FindProject("SomeProject"));


            var spec2 = groups[1].Spec;

            spec2.Name.ShouldEqual("SomethingElse");

            var p2 = groups[1].Projects.Single();

            p2.ShouldBeTheSameAs(theSolution.FindProject("Something"));
        }