public void CheckAccessToCSVFile() { CSVFIleDataSource cSVFIleDataSource = new CSVFIleDataSource(); var b = File.Exists(cSVFIleDataSource.CSVFilePath); Assert.IsTrue(b); }
public void CSVFileDataSourceReadTest() { CSVFIleDataSource cSVFIleDataSource = new CSVFIleDataSource(); var list = cSVFIleDataSource.ReadAll(); Assert.IsTrue(list.Count() == 10); }
public void WritePersonsToCSVFile() { CSVFIleDataSource cSVFIleDataSource = new CSVFIleDataSource(); var res = cSVFIleDataSource.WriteAll(new List <Person>() { new Person() { Id = 10, Name = "John", Lastname = "Doe", City = "Sky", Zipcode = "12345", FavColourId = 1 } }); Assert.IsTrue(res); }