|
From: Steve F. <st...@m3...> - 2003-08-03 22:43:39
|
Fix checked in. Dodgy field initialisation...
S.
Vaughn, Clifton wrote:
> Hello all,
>
> Here's a test that fails for named dynamic mocks.
>
> [Test]
> public void NamedDynamicMockMethodCall()
> {
> IMock mock = new DynamicMock(typeof(IBlah),
> "XBlah");
> Assertion.AssertEquals("XBlah", mock.Name);
> mock.ExpectAndReturn("DoStuff", "world", "hello");
>
> IBlah blah = (IBlah)mock.MockInstance;
> Assertion.AssertEquals("world",
> blah.DoStuff("hello"));
>
> mock.Verify();
> }
>
> Clifton F. Vaughn
>
> 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 sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Nmock-general mailing list
> Nmo...@li...
> https://lists.sourceforge.net/lists/listinfo/nmock-general
|