|
From: Emerson C. <EC...@th...> - 2004-04-26 16:07:30
|
It woudln't surprise me, dates are handled specially by dot net, they are
a form of object in that they have implicit conversions (operator
overloads) not available for any other intrinsic types.
Could that effect the mock ?
Steve Freeman <st...@m3...>
Sent by: nmo...@li...
26/04/2004 15:29
To
nmo...@li...
cc
Subject
Re: [Nmock-general] Dates
Are you sure he's setting up the returned object?
S
Nick Robinson wrote:
> I have a colleague who has tried to Mock a DateTime field on an
> interface:
>
> IFoo { DateTime Date { get; set; } }
>
> When a mock of IFoo is passed into a client call, access of
> non-DateTime properties work, but an access to the Date property
> generates an error about the object reference being null. Is there a
> known issue with Dates?
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Nmock-general mailing list
Nmo...@li...
https://lists.sourceforge.net/lists/listinfo/nmock-general
|