Пример #1
0
 public void LoadAndSaveCSV()
 {
   string pathCSV = @"C:\Document\Programs\Net\text.csv";
   string filePathCSV = @"C:\Document\Programs\text.csv";
   var fm = new FileManager();
   var AnotherList = fm.LoadCSV(pathCSV);
   fm.SaveCSV(filePathCSV, AnotherList);
   var nList = fm.LoadCSV(filePathCSV);
   StreamReader str1 = new StreamReader(pathCSV);
   StreamReader str2 = new StreamReader(filePathCSV);
   NUnit.Framework.FileAssert.AreEqual(str1.BaseStream, str2.BaseStream);
 }