public void GeneralHospital_export_includes_all_fields() { const int EXPECTED = 8; var exporter = new GeneralHospitalAccountExporter(); var repo = new FakeAccountRepository(); var files = (IList <AccountExportFile>)exporter.ExportToFile(repo.GetAllForClient(0), null); var rows = files[0].Data.Split(new[] { Environment.NewLine }, StringSplitOptions.None); var fields = rows[0].Split(exporter.Delimiter); Assert.AreEqual(EXPECTED, fields.Length); }