public override Type GetElementType() { throw null; } public override System.Type[] GetGenericParameterConstraints() { throw null; }
public void NegTest1() { CreateCallee(); _myEnumBuilder = _myModuleBuilder.DefineEnum("myEnum", TypeAttributes.Public, typeof(int)); Assert.Throws<NotSupportedException>(() => { Type typeVal = _myEnumBuilder.GetElementType(); }); }