Questions tagged [testcasedata]
3 questions
6
votes
1 answer
TestCase with list or params
I am trying to write a testcase that takes a string and expects the string split up. I cannot initialize a List in a TestCase, so I tried using TestCaseSource with a params argument, however I get
Wrong number of arguments provided
Is there any…

Justin Pihony
- 66,056
- 18
- 147
- 180
5
votes
1 answer
Setup a complicated row test with nunit and TestCaseSource and TestCaseData
For every expect return value like 2 or 4 I want to pass this value as parameter for the unit test method. But I get an exception that the parameters are not correct. When I remove the countExpected parameter the unit test runs fine I just can not…

Elisabeth
- 20,496
- 52
- 200
- 321
0
votes
0 answers
TestCaseData attribute does not match when TestCaseData has function call
In the following code, GetTestCaseData is not able to map to ProcessFilterRecords_ReturnsData(). The test explorer does show the yield return value but the debugger never enters ProcessFilterRecords_ReturnsData(). If I pass string directly to…

Abhishek Jain
- 445
- 2
- 6
- 19