public void CheckFileExistsFail() { writer.exist = true; Assert.ThrowsAsync <Exception> (() => diskManager.CheckFileExistsAsync(data.Files[0])); }