public void GetDataShouldReturnDataPassed() { var dataRow = new DataRowAttribute("mercury"); CollectionAssert.AreEqual(new object[] { "mercury" }, dataRow.GetData(null).FirstOrDefault()); }
public void ConstructorShouldSetANullDataValuePassedInAsADataArg() { var dataRow = new DataRowAttribute(null, "logos"); CollectionAssert.AreEqual(new object[] { null, "logos" }, dataRow.Data); }
public void ConstructorShouldSetANullDataValuePassedInParams() { var dataRow = new DataRowAttribute("neptune", null); CollectionAssert.AreEqual(new object[] { "neptune", null }, dataRow.Data); }
public void ConstructorShouldSetMultipleDataValuesPassed() { var dataRow = new DataRowAttribute("mercury", "venus", "earth"); CollectionAssert.AreEqual(new object[] { "mercury", "venus", "earth" }, dataRow.Data); }
public void ConstructorShouldSetDataPassed() { var dataRow = new DataRowAttribute("mercury"); CollectionAssert.AreEqual(new object[] { "mercury" }, dataRow.Data); }
public void DefaultConstructorSetsEmptyArrayPassed() { var dataRow = new DataRowAttribute(); CollectionAssert.AreEqual(new object[] { }, dataRow.Data); }