예제 #1
0
        public async Task CloseFail()
        {
            writer.close = true;
            await diskManager.CloseFilesAsync(rig.Manager);

            Assert.AreEqual(TorrentState.Error, rig.Manager.State);
        }
예제 #2
0
 public void CloseFail()
 {
     writer.close = true;
     Hookup();
     diskManager.CloseFilesAsync(rig.Manager).Wait();
     CheckFail();
 }
예제 #3
0
 public void CloseFail()
 {
     writer.close = true;
     Assert.ThrowsAsync <Exception> (() => diskManager.CloseFilesAsync(data));
 }