public void PrintsOutTheHeader() { var sut = new MemoryTable(new[] { new[] { "A", "B", "C" }, new[] { "1", "2", "3" }, new[] { "4", "5", "6" }, }); var output = new List <string>(); sut.Dump(new[] { "A", "C" }, output.Add); Assert.AreEqual(" A C", output[0]); }
public void PrintsOutTheData() { var sut = new MemoryTable(new[] { new[] { "A", "B", "C" }, new[] { "1", "2", "3" }, new[] { "4", "5", "6" }, }); var output = new List <string>(); sut.Dump(new[] { "A", "C" }, output.Add); Assert.AreEqual(3, output.Count); Assert.AreEqual("00001 1 3", output[1]); Assert.AreEqual("00002 4 6", output[2]); }