public void TestInvalidCastWithoutStrict() { SimpleClass testClass = new SimpleClass(); ISimpleInterface testClassProxy = (ISimpleInterface) new EasyProxy(InvocationHandler).Create(testClass); testClassProxy.Should().Not.Be.Null(); // Test invalid cast INotImplemented notImplementedInterface = (INotImplemented)testClassProxy; notImplementedInterface.NotImplementedMethod(); }
public Unresolvable(INotImplemented notImplemented) { }
public DependsOnInterface(INotImplemented notImplemented) { }