Hello,
There is problem in datarow attribute for unit test method. NCrunch can not substitute array parameter into test method.
For example:
[TestMethod]
[DataRow(new string[] { "0" }, false)]
[DataRow(new string[] { "0", "0", "0" }, false)]
[DataRow(new string[] { "0.0001" }, true)]
[DataRow(new string[] { "0", "5" }, true)]
[DataRow(new string[] { "0", "0.0001" }, true)]
[DataRow(new string[] { "0.0001", "0.0001" }, true)]
public void Test1_ExpectSuccess(string[] rateValues, bool expectedResult)
{
...
}
throw an exemption:
Type mismatch on test parameter 1 (System.String[] != System.Object[])
Best regards,
Konstantin