public void write_csv_throws_if_csv_writer_is_disposed()
 {
     var writer = new CsvWriter(new StringWriter());
     writer.Dispose();
     Assert.Throws<ObjectDisposedException>(() => new DateTime[0].WriteCsv(writer));
 }
 public async Task write_csv_async_throws_if_csv_writer_is_disposed()
 {
     var writer = new CsvWriter(new StringWriter());
     writer.Dispose();
     await Assert.ThrowsAsync<ObjectDisposedException>(() => new DateTime[0].WriteCsvAsync(writer));
 }