public void TestCsvHelper() { var exporter = new CSVExporter(); var filter = new StatsFilter(); var file = "sample-export.csv"; exporter.To(file, filter.Apply(stats)); var count = TestHelper.CountLines(file); Assert.AreEqual(10, count); }