Parameterized tests in f# - This is not a valid constant expression
问题 For some reason when passing arguments to the test via TestCase attrubute, I get the following error message about the first argument, which in this case is an array: This is not a valid constant expression or custom attribute value module GameLogicTest = open FsUnit open NUnit.Framework open GameLogic.Examle // This is not a valid constant expression or custom attribute value [<TestCase( [| 1; 2; 3 |], 3, 1,1)>] let ``let example.`` (a, m, h, c) = a |> proof1 m |> should equal (h,c) But when