public void NonGenericInterface_WithIndexer()
        {
            dynamic d = new ExplicitlyImplementedInterfaceWithIndexer();

            Assert.Throws <RuntimeBinderException>(() => d[0]);
            Assert.Throws <RuntimeBinderException>(() => d[0] = 1);

            var x = Helpers.Cast <InterfaceWithIndexer>(d);
        }
        public void NonGenericInterface_WithIndexer()
        {
            dynamic d = new ExplicitlyImplementedInterfaceWithIndexer();
            Assert.Throws<RuntimeBinderException>(() => d[0]);
            Assert.Throws<RuntimeBinderException>(() => d[0] = 1);

            var x = Helpers.Cast<InterfaceWithIndexer>(d);
        }