public void InterfaceWrapper() { var test = new Test<string>(); var wrappedTest = Proxy.CreateGenericInterfaceWrapper<ITest<object>>( test ); wrappedTest.SetTest( TestString ); Assert.AreEqual( TestString, wrappedTest.GetTest() ); Assert.AreEqual( TestString, test.GetTest() ); AssertHelper.ThrowsException<InvalidCastException>( () => wrappedTest.SetTest( 0 ) ); }