public void CanRename_Columns_Individually_WhenConverting_ObjectsToTable() { var objects = AListOfAnyClass(); var table = new QueryTable<AnyClass>(); table.OverrideColumnName("Any Property", "New Name"); table.OverrideColumnName("Any Other Property", "Another New Name"); var actual = table.For(objects); var expected = new List<object> { new List<object> { new List<object> {"New Name", "A1"}, new List<object> {"Another New Name", "B1"}, new List<object> {"Yet Another Property", "C1"}, new List<object> {"A Date Time Property", "01-Jan-2012 13:30:55"}, }, new List<object> { new List<object> {"New Name", "A2"}, new List<object> {"Another New Name", "B2"}, new List<object> {"Yet Another Property", "C2"}, new List<object> {"A Date Time Property", "02-Feb-2013 13:30:55"}, }, new List<object> { new List<object> {"New Name", "A3"}, new List<object> {"Another New Name", "B3"}, new List<object> {"Yet Another Property", null}, new List<object> {"A Date Time Property", "03-Mar-2014 13:30:55"}, } }; Assert.AreEqual(expected, actual); }