public void smoke_test_the_package_validation() { var theFilename = "fubumvc.core.nuspec"; var stream = GetType() .Assembly .GetManifestResourceStream(typeof(DataMother), "FubuMVCNuspecTemplate.txt"); new FileSystem().WriteStreamToFile(theFilename, stream); var spec = NugetSpec.ReadFrom(theFilename); var service = new PublishingService(new StubSolutionFiles { RootDir = ".".ToFullPath() }); Exception<RippleFatalError>.ShouldBeThrownBy(() => service.CreatePackage(new PackageParams(spec, new SemanticVersion("1.0.0.0"), ".".ToFullPath(), false))); }
public void smoke_test_the_package_validation() { var theFilename = "fubumvc.core.nuspec"; var stream = GetType() .Assembly .GetManifestResourceStream(typeof(DataMother), "FubuMVCNuspecTemplate.txt"); new FileSystem().WriteStreamToFile(theFilename, stream); var spec = NugetSpec.ReadFrom(theFilename); var service = new PublishingService(new StubSolutionFiles { RootDir = ".".ToFullPath() }); Exception <RippleFatalError> .ShouldBeThrownBy(() => service.CreatePackage(new PackageParams(spec, new SemanticVersion("1.0.0.0"), ".".ToFullPath(), false))); }