コード例 #1
0
        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
ファイル: InterfaceTests.cs プロジェクト: martydill/MagicIOC
 public Unresolvable(INotImplemented notImplemented)
 {
 }
コード例 #3
0
ファイル: InterfaceTests.cs プロジェクト: martydill/MagicIOC
 public Unresolvable(INotImplemented notImplemented)
 {
 }
コード例 #4
0
 public DependsOnInterface(INotImplemented notImplemented)
 {
 }
コード例 #5
0
 public DependsOnInterface(INotImplemented notImplemented)
 {
 }