That looks like a good way to go.  I did manage to get past it by
using simple constraints (Arg<TimeZoneInfo>.Is.NotNull) which is
actually what I really wanted to test anyway, as the bug I was working
to create a test for was that the tz was null.  But, I'm sure I'll
need to do some equality checks soon, so this is very helpful.

Thanks!
Ryan

On Apr 18, 3:51 pm, Kenneth Xu <[email protected]> wrote:
> Try:
>        fakeService.Expect(service =>
> service.MethodWithTimeZoneInfoParameter(Arg<TimeZoneInfo>.Matches(new
> Predicate<TimeZoneInfo>(r=>r.StandardName=="Pacific Standard
> Time")))).Return("hello world");
>
> Or you can also use Callback.
>
> HTH
>
> On Sun, Apr 18, 2010 at 12:46 AM, Ryan W <[email protected]> wrote:
> >        fakeService.Expect(service =>
>
> > service.MethodWithTimeZoneInfoParameter(TimeZoneInfo.FindSystemTimeZoneById 
> > ("Pacific
> > Standard Time"))).Return("hello world");
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Rhino.Mocks" 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 
> athttp://groups.google.com/group/rhinomocks?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" 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/rhinomocks?hl=en.

Reply via email to