public void EmptyEntityToCsvTest() { var actualCsvRecords = EntityToCsvSerializer.SerializeToDelimitedText(new List <TestPersonEntity>(), ','); var expectedEmptyCsvRecord = GetExpectedCsvRecordForEmptyEntity(); Assert.AreEqual(actualCsvRecords, expectedEmptyCsvRecord); }
public void EntityToCsvTest() { var actualCsvRecords = EntityToCsvSerializer.SerializeToDelimitedText(GetTestEntityCollection(), ','); var expectedCsvRecords = GetExpectedCsvRecordsForNonEmptyEntity(); Assert.AreEqual(actualCsvRecords, expectedCsvRecords); }