I have a class Foo that implements IFoo. Assert.IsAssignableFrom(typeof
(IFoo), new Foo()) fails.
Am I misunderstanding the purpose of this assertion? Why does it
fail?
This simple test fixture demonstrates:
[TestFixture]
public class TestFixture1
{
private interface IFoo
{
string Value { get; }
}
private class Foo : IFoo
{
public string Value { get; set; }
}
[Test]
public void Test()
{
Assert.IsAssignableFrom(typeof(IFoo), new Foo());
}
}
--
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mbunituser?hl=en.