protected void createTorrent(string torrentName) { var p = new Publisher( new PublishingOptions { Content = Path.Combine(servePath, assemblyFileName), PathToAssembly = Path.Combine(servePath, assemblyFileName), TorrentName = torrentName, RunInSeparateAppDomain = true }); }
public void TheTorrentsDefaultNameIsTheProductName() { var c = new TestsCompiler() .StoreAssemblyAs("defaultName.dll") .With<AssemblyWithSingleDownload>(); string contentPath = Path.Combine(Environment.CurrentDirectory, "defaultName.dll"); var p = new Publisher( new PublishingOptions { Content = contentPath, PathToAssembly = contentPath, RunInSeparateAppDomain = true }); File.Exists("acme stuff.torrent").ShouldBeTrue(); }