|
From: Steve M. <Ste...@ty...> - 2006-03-29 13:56:06
|
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
solution for. With the latest get from CVS all the tests, including my
new one pass.
=20
Here's the situation
=20
typeof(ICloneable).IsAssignableFrom(myCloneableObject) should be true if
myClonableObject implements ICloneable
=20
[Test]
public void MockObjectsPassIsAssignableFrom()
{
Assert.IsTrue(
typeof(ICloneable).IsAssignableFrom(
new Mockery().NewMock<ICloneable>().GetType()));
}
=20
This test fails because the GetType() returns the _TransparentProxy type
which does not implement the interface.
=20
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.
=20
|