问题标签 [testcasedata]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
nunit - 使用 nunit 和 TestCaseSource 和 TestCaseData 设置复杂的行测试
对于像 2 或 4 这样的每个期望返回值,我想将此值作为单元测试方法的参数传递。但我得到一个例外,即参数不正确。当我删除 countExpected 参数时,单元测试运行良好,我无法断言 countExpected ...
NUnit 完全可以实现这种情况吗?
c# - 带有列表或参数的测试用例
我正在尝试编写一个测试用例,它需要一个字符串并期望字符串被拆分。我无法List
在 a 中初始化 a TestCase
,所以我尝试使用TestCaseSource
参数params
,但是我得到了
提供的参数数量错误
我有什么方法可以实现我的最终目标吗?
c# - 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 JArray.Parse()
, that works.