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();
        }
示例#2
0
 public Unresolvable(INotImplemented notImplemented)
 {
 }
示例#3
0
 public Unresolvable(INotImplemented notImplemented)
 {
 }
示例#4
0
 public DependsOnInterface(INotImplemented notImplemented)
 {
 }
示例#5
0
 public DependsOnInterface(INotImplemented notImplemented)
 {
 }