|
From: Dean H. <dea...@Bo...> - 2005-04-18 21:49:01
|
Is there a way to use NMock to test subsystems that have different
threads.
=20
Ie. I want to do something like this
=20
mockListener.setTimeout(10000);
=20
SysUnderTest.addClientListener(mockListener);
SysUnderTest.invokeToStart();
=20
CalledMethod m =3D =
mockListener.expectMethodCall("someMethodOnListener");
=20
Where expectMethodCall actually does a Monitor.Wait(timeout) because the
method "someMethodOnListener" is
Invoked on a different thread and not invoked on the
SysUnderTest.invokeToStart() client thread(ie. The test thread)
=20
Is there a way to do this? Java's mocklib does this very nicely for
this type of testing.
=20
Thanks,
dean
--------------------------------------------------------
The information contained in this e-mail and any attachments hereto are =
for the exclusive use of the addressee and may contain confidential, =
privileged and nondisclosable information. If the recipient of this =
e-mail is not the addressee, or a person responsible for delivering this =
e-mail to the addressee, such recipient is strictly prohibited from =
reading, printing, photocopying, distributing or otherwise using this =
e-mail or any attachments hereto in any way. If the recipient has =
received this e-mail in error, please send return e-mail immediately =
notifying us of your receipt of this e-mail and delete the e-mail from =
your inbox. Thank you.
|