示例#1
0
        public void GetDataShouldReturnDataPassed()
        {
            var dataRow = new DataRowAttribute("mercury");

            CollectionAssert.AreEqual(new object[] { "mercury" }, dataRow.GetData(null).FirstOrDefault());
        }
示例#2
0
        public void ConstructorShouldSetANullDataValuePassedInAsADataArg()
        {
            var dataRow = new DataRowAttribute(null, "logos");

            CollectionAssert.AreEqual(new object[] { null, "logos" }, dataRow.Data);
        }
示例#3
0
        public void ConstructorShouldSetANullDataValuePassedInParams()
        {
            var dataRow = new DataRowAttribute("neptune", null);

            CollectionAssert.AreEqual(new object[] { "neptune", null }, dataRow.Data);
        }
示例#4
0
        public void ConstructorShouldSetMultipleDataValuesPassed()
        {
            var dataRow = new DataRowAttribute("mercury", "venus", "earth");

            CollectionAssert.AreEqual(new object[] { "mercury", "venus", "earth" }, dataRow.Data);
        }
示例#5
0
        public void ConstructorShouldSetDataPassed()
        {
            var dataRow = new DataRowAttribute("mercury");

            CollectionAssert.AreEqual(new object[] { "mercury" }, dataRow.Data);
        }
示例#6
0
        public void DefaultConstructorSetsEmptyArrayPassed()
        {
            var dataRow = new DataRowAttribute();

            CollectionAssert.AreEqual(new object[] { }, dataRow.Data);
        }