public void index_maps_cells_correctly() { var row = new Row(_cells, _columnMappings); Assert.AreEqual(_cells[0], row[0]); Assert.AreEqual(_cells[1], row[1]); Assert.AreEqual(_cells[2], row[2]); }
private void AddRow(string name, int price) { Row row = new Row(); row["name"] = name; row["price"] = price; rows.Add(row); }
public void column_name_index_maps_cells_correctly() { var row = new Row(_cells, _columnMappings); Assert.AreEqual(_cells[0], row["Name"]); Assert.AreEqual(_cells[1], row["Favorite Sport"]); Assert.AreEqual(_cells[2], row["Age"]); }
protected void AddUser(string name, string email) { Row row = new Row(); row["name"] = name; row["email"] = email; left.Add(row); }
protected void AddPerson(int id, string email) { Row row = new Row(); row["id"] = id; row["email"] = email; right.Add(row); }
private static Row FillRow(string[] columns, object[] values) { Row row = new Row(); for (int i = 0; i < values.Length; i++) row[columns[i]] = values[i]; return row; }
public void Should_not_take_casing_into_account_in_column_names() { Row first = new Row(); first["A"] = 1; Row second = new Row(); second["a"] = 1; Assert.IsTrue(first.Equals(second)); }
public void Nulls_are_equal() { Row first = new Row(); first["a"] = null; Row second = new Row(); second["a"] = null; Assert.IsTrue(first.Equals(second)); }
public void Incompatible_types_throw_invalid_operation_exception() { Row first = new Row(); first["a"] = 1; Row second = new Row(); second["a"] = "stringvalue"; Assert.IsTrue(first.Equals(second)); }
public void Different_numeric_types_should_be_comparable_if_implicit_conversion_exists(object firstValue, object secondValue) { Row first = new Row(); first["a"] = firstValue; Row second = new Row(); second["a"] = secondValue; Assert.IsTrue(first.Equals(second)); }
public void invalid_column_name_index_throws_argument_exception() { var newRow = new Row(_cells, _columnMappings); var temp = newRow["First Name"]; }