Exemplo n.º 1
0
 public void Clear()
 {
     Task.Factory.StartNew(() =>
     {
         try
         {
             csvFile.Clear();
         }
         catch { }
     });
 }
Exemplo n.º 2
0
        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();
        }