public void TestGetCustomAttributesOfTypeIncomplete() { FieldBuilder field = _tb.DefineField("name", typeof(string), FieldAttributes.Public); field.GetCustomAttributes(typeof(ObsoleteAttribute), false); }
public void TestGetCustomAttributesComplete() { FieldBuilder field = _tb.DefineField("name", typeof(string), FieldAttributes.Public); _tb.CreateType(); field.GetCustomAttributes(false); }