tag:blogger.com,1999:blog-7656888.post2569843497857103078..comments2023-10-11T04:24:22.301-06:00Comments on Aggregated Intelligence: Creating mock DataTable and DataRow objectsRaj Raohttp://www.blogger.com/profile/02773005045522319448noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7656888.post-82890954466914321782011-10-30T13:14:27.483-06:002011-10-30T13:14:27.483-06:00This is useful for creating test data for the purp...This is useful for creating test data for the purpose of unit testing. However, it isn't really demoing mock objects as it is using concrete DataTable and DataRow objects. To be clear, here is a practioners description of a mock object from the IBM Developers website...<br /><br />"Mock objects are a useful way to write unit tests for objects that act as mediators. Instead of calling the real domain objects, the tested object calls a mock domain object that merely asserts that the correct methods were called, with the expected parameters, in the correct order."<br /><br />That's not to say the example given isn't useful in creating unit tests, only that it doesn't demonstrate Mock DataTable or DataRow objects.Bobhttps://www.blogger.com/profile/02291707102555645727noreply@blogger.com