public void Should_Not_Write_Tab_Delimited_Line(params string[] values) { //arrange using (_csvWriter = new CSVWriter()) { //act string tabbedLine = _csvWriter.CreateLine(values); //assert Assert.IsEmpty(tabbedLine); } }
public void Should_Write_Tab_Delimited_Line(params string[] values) { //Arrange using (_csvWriter = new CSVWriter()) { //Act string tabbedLine = _csvWriter.CreateLine(values); string[] columns = tabbedLine.Split('\t'); //Assert Assert.That(columns.Count() == 4); Assert.AreEqual(columns[0], "Leke"); Assert.AreEqual(columns[1], "Harrow"); Assert.AreEqual(columns[2], "747"); Assert.AreEqual(columns[3], "*****@*****.**"); } }