public void GetDataRowCollectionTest() { DataSet dataSet = new DataSet(); DataRowCollection dataRows = null; dataRows = dataSet.GetDataRowCollection(); Assert.IsNull(dataRows); DataTable dataTable = dataSet.Tables.Add(); dataTable.Columns.Add("TestColumn", typeof(string)); dataTable.Rows.Add("TestValue"); dataRows = dataSet.GetDataRowCollection(); Assert.IsNotNull(dataRows); Assert.AreNotEqual(dataRows.Count, 0); }