System.Data.Tests.DataRowCollectionTest2.DataRowCollection_Add_O1 C# (CSharp) Method

DataRowCollection_Add_O1() private method

private DataRowCollection_Add_O1 ( ) : void
return void
        public void DataRowCollection_Add_O1()
        {
            DataTable dt = DataProvider.CreateParentDataTable();
            dt.Rows.Clear();
            dt.Rows.Add(new object[] { 1, "1-String1", "1-String2", new DateTime(2005, 1, 1, 0, 0, 0, 0), 1.534, true });
            Assert.Equal(1, dt.Rows.Count);
            Assert.Equal(1, dt.Rows[0]["ParentId"]);
            Assert.Equal("1-String1", dt.Rows[0]["String1"]);
            Assert.Equal("1-String2", dt.Rows[0]["String2"]);
            Assert.Equal(new DateTime(2005, 1, 1, 0, 0, 0, 0), dt.Rows[0]["ParentDateTime"]);
            Assert.Equal(1.534, dt.Rows[0]["ParentDouble"]);
            Assert.Equal(true, dt.Rows[0]["ParentBool"]);
        }