示例#1
0
        public void finds_the_mapped_nuspecs()
        {
            var spec = theMap.ToSpec(theSolution);

            spec.Project.ShouldBeTheSameAs(theSolution.FindProject("SomeProject"));
            spec.Spec.Name.ShouldEqual("Something");
        }
示例#2
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));
        }
示例#3
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");
        }