public void CanReturnAnArray() { List <string> sampleData = new List <string> { "Jack", "Jane", "Jill", "Ally" }; byte[] array = CSVFileUtil.CreateCSVFile("test", sampleData); Assert.NotNull(array); Assert.NotEmpty(array); }
public void CanCreateCSVFile() { List <string> sampleData = new List <string> { "Jack", "Jane", "Jill", "Ally" }; CSVFileUtil.CreateCSVFile("test", sampleData); Assert.True(File.Exists (Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "CSV", "test.csv"))); }