我有一个测试方法和一堆测试用例,如下所示。
[TestCase(1, 2)]
[TestCase(3, 4)]
[TestCase(5, 6)]
public void Smack(int a, int b) { ... }
我在一个地区隐藏了一堆案件,但感觉不对。我已经尝试过官方网页上列出的其他属性,但并没有真正发挥作用(对正确的处理方法有点困惑)。此外,一位同事暗示使用排列等可能会导致问题。
下面是表达一堆测试用例的最佳方式,还是有什么更流畅、更专业的方法?
#region Bunch
[TestCase(1, 2)]
[TestCase(3, 4)]
[TestCase(5, 6)]
#endregion
public void Smack(int a, int b) { ... }