public void SubInterface_WithNewMember()
        {
            dynamic d = new ExplicitlyImplementedSubInterfaceWithNewMember();
            Assert.Throws<RuntimeBinderException>(() => d.Foo());

            Assert.Throws<InvalidCastException>(() => Helpers.Cast<SubInterfaceWithNoMembers>(d));
            Assert.Throws<InvalidCastException>(() => ((SubInterfaceWithNoMembers)d).Foo());
        }
        public void SubInterface_WithNewMember()
        {
            dynamic d = new ExplicitlyImplementedSubInterfaceWithNewMember();

            Assert.Throws <RuntimeBinderException>(() => d.Foo());

            Assert.Throws <InvalidCastException>(() => Helpers.Cast <SubInterfaceWithNoMembers>(d));
            Assert.Throws <InvalidCastException>(() => ((SubInterfaceWithNoMembers)d).Foo());
        }