public async Task CloseFail() { writer.close = true; await diskManager.CloseFilesAsync(rig.Manager); Assert.AreEqual(TorrentState.Error, rig.Manager.State); }
public void CloseFail() { writer.close = true; Hookup(); diskManager.CloseFilesAsync(rig.Manager).Wait(); CheckFail(); }
public void CloseFail() { writer.close = true; Assert.ThrowsAsync <Exception> (() => diskManager.CloseFilesAsync(data)); }