|
From: Steve M. <Ste...@ty...> - 2006-04-06 20:43:56
|
On 3/29/06, Steve Mitcham <Ste...@ty...> wrote:
>
> I've got a patch to submit, but frankly I have no idea of how to go=20
> about doing it. Here's the issue that I've run across and implemented
> a solution for. With the latest get from CVS all the tests, including
my new one pass.
>
> Here's the situation
>
> typeof(ICloneable).IsAssignableFrom(myCloneableObject)
> should be true if myClonableObject implements ICloneable
>
> [Test]
> public void MockObjectsPassIsAssignableFrom()
> {
> Assert.IsTrue(
> typeof(ICloneable).IsAssignableFrom(
> new
> Mockery().NewMock<ICloneable>().GetType()));
> }
>
> This test fails because the GetType() returns the _TransparentProxy=20
> type which does not implement the interface.
>
> I've reimplemented the way MockObjects are created so that this test=20
> will pass, all the other tests work and I'm ready to submit. However,
> having absolutely no clue as to how to go about doing this I'm stuck.
>=20
-----Original Message-----
From: nmo...@li...
[mailto:nmo...@li...] On Behalf Of Nat
Pryce
Sent: Thursday, April 06, 2006 3:42 PM
To: nmo...@li...
Subject: Re: [NMock2-Dev] Another try at my patch
Can you describe what it does?
|