public void AssociateTypeTest() { TypeAccessor.AssociateType(typeof(Interface1), typeof(MyClass)); Interface1 i1 = TypeAccessor <Interface1> .CreateInstance(); i1.Name = "John"; Assert.AreEqual("John", i1.Name); Assert.AreEqual("John", TypeAccessor <Interface1> .Instance["Name"].GetValue(i1).ToString()); }