public void ConvertSimpleFlipToDataTableTest() { DateTime firstDate = DateTime.Now; DateTime secondDate = firstDate.AddDays(1); const string tableName = "MyTable"; c.Dict dict = CreateDict(firstDate, secondDate); c.Flip flip = new c.Flip(dict); DataTable dt = flip.ToDataTable(tableName); CheckDataTable(firstDate, secondDate, dt, tableName); }
public void ConvertSimpleDataTableToFlip() { DateTime now = DateTime.Now; DateTime secondDate = now.AddDays(1); const string tableName = "MyTable"; DataTable dt = CreateTable(tableName, now, secondDate); c.Flip flip = dt.ToFlip(); DataTable tableToCheck = flip.ToDataTable(tableName); CheckDataTable(now, secondDate, tableToCheck, tableName); }