public void NoDefaultCtorForInterfaces()
        {
            DisableVerification();
            ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "IFoo", null, Type.EmptyTypes,
                                                    TypeAttributes.Interface | TypeAttributes.Abstract | TypeAttributes.Public, false);

            emitter.CreateDefaultConstructor();
        }
        public void NoDefaultCtorForInterfaces()
        {
            DisableVerification();
            var emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "IFoo", null, Type.EmptyTypes,
                                           TypeAttributes.Interface | TypeAttributes.Abstract | TypeAttributes.Public, false);

            Assert.Throws <InvalidOperationException>(delegate {
                emitter.CreateDefaultConstructor();
            });
        }