public void op_ToDataTable() { var sheet = new DerivedDataSheet(); var table = sheet.ToDataTable(); Assert.Equal(string.Empty, table.TableName); foreach (DataRow row in table.Rows) { Assert.Equal("1", row.Field <string>("one")); } }
public void op_ToDataTable_string() { const string name = "Example"; var sheet = new DerivedDataSheet(); var table = sheet.ToDataTable(name); Assert.Equal(name, table.TableName); foreach (DataRow row in table.Rows) { Assert.Equal("1", row.Field <string>("one")); } }