#12811
7 years ago
14 Nov 2018 11:53 UTC
The following code works fine from Visual Studio Test Explorer but NCrunch displays an error:
Type mismatch on test parameter 2 (parameter should not be null)
[TestClass]
public class UnitTest1
{
[DataTestMethod]
[DataRow(new[] { "a", "b", "c" }, null)]
public void TestMethod1(string[] data, string[] moredata)
{
}
}
I have set [h]Framework utilisation type for MSTest[/h] to [h]UseDynamicAnalysis[/h]
#12816
7 years ago
15 Nov 2018 00:31 UTC
Hi, thanks for sharing this issue.
I've reproduced it exactly as described. This looks like an edge case where NCrunch's emulator just doesn't match the same behaviour. I've noted this down to be fixed in the next release.
#12993
7 years ago
10 Jan 2019 15:14 UTC
Fixed in 3.23.0.10, thank you!
Edited 7 years ago
10 Jan 2019 15:15 UTC