public void Add_Row_Belong_ToAnother_Table_Exception() { var table = new CsvDataTable <TestData>(); var row = table.NewRow("lerow"); Assert.Throws <ArgumentException>(() => _rows.Add(row)); }
public void NewRow_Table_Name_Set() { var row = _table.NewRow("test"); var actualTable = row.Table; var actualName = row.Name; Assert.AreSame(_table, actualTable); Assert.AreEqual("test", actualName); }
public void Add_Row_Already_Belong_ToTable_Exception() { var row = _table.NewRow("lerow"); // Added row. _rows.Add(row); // Adding row again, exception thrown. Assert.Throws <ArgumentException>(() => _rows.Add(row)); }
public void SetUp() { _table = new CsvDataTable <TestData>(); _row = _table.NewRow("LeRow"); }