public void NonGenericInterface_WithGetterAndSetter() { dynamic d = new ExplicitlyImplementedInterfaceWithGetterAndSetter(); Assert.Throws<RuntimeBinderException>(() => d.Property); Assert.Throws<RuntimeBinderException>(() => d.Property = 1); var x = Helpers.Cast<InterfaceWithGetterAndSetter>(d); }
public void NonGenericInterface_WithGetterAndSetter() { dynamic d = new ExplicitlyImplementedInterfaceWithGetterAndSetter(); Assert.Throws <RuntimeBinderException>(() => d.Property); Assert.Throws <RuntimeBinderException>(() => d.Property = 1); var x = Helpers.Cast <InterfaceWithGetterAndSetter>(d); }