public void SetUp()
 {
     Formatter = new TableFormatter();
     FormatterT = new TableFormatter('\0', ' ', '\0', '-', '\0', '+');
     FormatterB = new TableFormatter('\0', ' ', '\0', '\0', '-', '+');
     FormatterTB = new TableFormatter('\0', ' ', '\0', '-');
 }
 public void TestGetRowSeparator()
 {
     Table table = new Table();
     table.Columns.Add("thing", typeof(string));
     table.Columns.Add("stuff", typeof(string));
     table.Rows.Add("xx", "zzz");
     table.Rows.Add("walrus", "thingything");
     TableFormatter formatter = new TableFormatter('\0', '|', '\0', '\0', '\0', '+');
     Assert.AreEqual("------+-----------", formatter.GetRowSeparator(table, '-'));
     formatter = new TableFormatter('|', '|', '\0', '\0', '\0', '+');
     Assert.AreEqual("+------+-----------", formatter.GetRowSeparator(table, '-'));
     formatter = new TableFormatter('\0', '|', '|', '\0', '\0', '+');
     Assert.AreEqual("------+-----------+", formatter.GetRowSeparator(table, '-'));
     formatter = new TableFormatter('|', '|', '|', '\0', '\0', '+');
     Assert.AreEqual("+------+-----------+", formatter.GetRowSeparator(table, '-'));
 }