开发者

No converter for System.Double[] when using fitSharp 1.9

开发者 https://www.devze.com 2023-04-04 07:09 出处:网络
When I run my FItnesse tests using fitSharp I am getting the \"No converter for System.Double[]\" error message near each value in capexAmounts column.

When I run my FItnesse tests using fitSharp I am getting the "No converter for System.Double[]" error message near each value in capexAmounts column. But the results are parsed and handled as doubles correctly - the DoesDepreciatedAmountsEqualToSpecifiedOnes method

What am I doing wrong? 开发者_开发问答Please, help

Here is my table:

| Run depreciation with different tangible setup |
| tangible | tangiblePercent | capexAmounts | does depreciated amounts equal to specified ones? |
| tan | 0 | [8, 5, 3.2, 1.6, 0.8] | [0, 0, 0, 0, 0] |

And here is my code:

public class RunDepreciationWithDifferentTangibleSetup
{
    public string Tangible { get; set; }
    public double TangiblePercent { get; set; }
    public double[] CapexAmounts { get; set; }

    public double[] DoesDepreciatedAmountsEqualToSpecifiedOnes()
    {
        return someArray;
    } }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号