Ejemplo n.º 1
0
 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
         });
 }
Ejemplo n.º 2
0
        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();
        }