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)); }
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"); }