|
From: Steve F. <st...@m3...> - 2003-08-20 18:09:57
|
Fixed it last night (in CVS). What's the error you're getting with this
code?
S.
Vaughn, Clifton wrote:
> Hey,
>
> I looks like someone beat me to the internal method bug. The only thing I
> can't seem to get working in my code is this test.
>
> public interface IFoo2
> {
> System.Drawing.Color color { get; }
> DateTime date { get; }
> System.Int32 anint { get; }
> System.Object anobj { get; }
> }
>
> public void TestColor()
> {
> IMock foo = new DynamicMock( typeof( IFoo2 ) );
> foo.ExpectAndReturn( "color",
> System.Drawing.Color.Black );
> foo.ExpectAndReturn( "date", DateTime.Now.Date );
> System.Drawing.Color c =
> ((IFoo2)foo.MockInstance).color;
> DateTime d = ((IFoo2)foo.MockInstance).date;
>
> Assertion.AssertEquals( "color",
> System.Drawing.Color.Black, c );
> Assertion.AssertEquals( "date", DateTime.Now.Date, d
> );
> }
>
> I've studied the ClassGenerator, cruised the web, and tried all kinds of
> hacks and I can't get it to work. Can someone please help me out with this?
>
>
> Clifton F. Vaughn
> Senior Business Analyst
> Information Technology
> Valassis / IT Division
> 19975 Victor Parkway Livonia, MI 48152
> Tel 734.591.3000 Ext. 16726 Fax 734.632.6151
> va...@va...
> www.valassis.com
>
> This message may have included proprietary or protected information. This
> message and the information contained herein are not to be further
> communicated without my express written consent.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by Dice.com.
> Did you know that Dice has over 25,000 tech jobs available today? From
> careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
> best hiring companies. http://www.dice.com/index.epl?rel_code=104
> _______________________________________________
> Nmock-general mailing list
> Nmo...@li...
> https://lists.sourceforge.net/lists/listinfo/nmock-general
--
"A LISP programmer knows the value of everything but the cost of nothing.
A C programmer knows the cost of everything but the value of nothing."
(Todd Proebsting)
|