dotnet/runtime

Improve custom attribute decoding tests

开放

#16,552 创建于 2016年3月1日

 (2 条评论) (0 个反应) (0 位负责人)C# (5,445 个派生)batch import
area-System.Reflection.Metadatahelp wantedtest-enhancement

仓库指标

星标
 (17,886 个星标)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 PR)

描述

Currently, due to lack of time, some tests just check that we don't throw. A better approach would probably be to generically compare reflection CustomAttributeData to S.R.M CustomAttributeValue for every test attribute applied.

Also, there needs to be test cases for malformed custom attributes. Test coverage is at ~70% now with only positive cases.

贡献者指南