static void Main(string[] args) { CsvMain csv = new CsvMain("s"); csv.Read(); csv.Write(); }
public void WriteAndReadFile() { _instance.Write(); for (var i = 0; i < 1000; i++) { _instance.Write(i.ToString(), (i + 1).ToString()); } _instance.Read(); var numberOfElements = new List <string[]>(); while (_instance.Read().Item1) { numberOfElements.Add(_instance.Read().Item2); } Assert.That(numberOfElements.Count, Is.EqualTo(500)); }