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 at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to