【发布时间】:2009-01-19 19:24:35
【问题描述】:
我们在所有项目中都使用 FxCop。对于我们的单元测试,我不确定它是否值得。我们最终得到了许多压制:
[SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = SuppressJustifications.CA1822MethodIsUsedExternallyAsNonStatic)]
[SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Cantaloupe.Seed.Security.RijndaelEncryption", Justification = SuppressJustifications.CA1806MethodIsCalledForExceptionThrowingTest)]
人们对 FxCop on Unit test code 有什么看法?
【问题讨论】:
标签: .net unit-testing fxcop