Hi Magne,

I know you had reported this several times and my deepest apologies for not
getting back to you sooner. I've reposted to the user list.

MbUnit does not have anything out of the book for this kind of thing so you
would need to open a data reader, get the data and check to make sure it was
closed per test. Asserts follow on so if when checking your data your test
passes but later in the test you have (exact syntax escapes me but the
general idea is)

if(!dr.IsClosed == false)
{
  Assert.Fail();
}

and the datareader is open then your test will fail.

Any other questions, let me know.

HTH

Andy

On 12/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
> I was wondering if MbUnit/TestDriven have a functionality to check if
> all
> DataReaders opened by a test is closed in the end of the test and that
> the test fail if the datareaders are not closed.
> Or if someone have another way of checking this.
> Regards
> Magne Hopland
>
> ----------------------------------
> This message was generated from a contact form at:
> http://weblogs.asp.net/astopford/default.aspx
> It was submitted by Magne Hopland ([EMAIL PROTECTED])
>
> Your contact information was not shared with the user.
>
>


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to