|
From: Dean H. <dea...@Bo...> - 2005-05-24 13:24:12
|
I have a statement like so
=20
ServiceRequest req =3D new ServiceRequest();
req.Id =3D "xyz"
req.result =3D "abc";
Mock.expect("method", new IsEquals(req));
=20
Except I am not expecting req and actual to be equal. I am actually only
expecting the req.result to be equal. How do I do this with nmock? I
used to use java's mocklib which returned the parameters to you so you
could just use normal JUnit assert statements statements(though this is
because java's mocklib does the expects after calling the method on the
implementation instead of before, therefore it caches the params and
returns them to you on the call to expect.
=20
Is there a way to do this with nmock though?
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.
|