public void Clear() { Task.Factory.StartNew(() => { try { csvFile.Clear(); } catch { } }); }
public async Task TestAsync() { CsvOf <MyModelExemple> sut = createSut(); await sut.WriteAsync( new MyModelExemple { NullableBool = true } ); var result = await sut.ReadAsync(); Assert.AreEqual(1, result.Count()); Assert.AreEqual(true, result.First().NullableBool); sut.Clear(); }