|
From: Nat P. <nat...@gm...> - 2006-03-31 04:47:30
|
Create a patch using the subversion diff command and send it to this list.
Does your patch work in both .NET 1.1 and .NET 2.0?
--Nat.
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 about
> doing it. Here's the issue that I've run across and implemented a soluti=
on
> for. With the latest get from CVS all the tests, including my new one pa=
ss.
>
> 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 type
> which does not implement the interface.
>
> I've reimplemented the way MockObjects are created so that this test 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.
>
|