After a fair amount of frustration in writing a unit test involving a dataset, I found this snippet for a more robust assertion.

Assert.IsTrue(mDataSet != null && mDataSet.Tables != null && mDataSet.Tables[0].Rows.Count > 0);

Advertisements