mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-10 19:38:39 +00:00
Fix param count error with TestCase (#68)
This commit is contained in:
@@ -30,6 +30,15 @@ module SingleTestMethod =
|
||||
| "NUnit.Framework.TestCaseAttribute" ->
|
||||
let args = attr.ConstructorArguments |> Seq.map _.Value |> Seq.toList
|
||||
|
||||
let args =
|
||||
match args with
|
||||
| [ :? System.Collections.ICollection as x ] ->
|
||||
x
|
||||
|> Seq.cast<CustomAttributeTypedArgument>
|
||||
|> Seq.map (fun v -> v.Value)
|
||||
|> Seq.toList
|
||||
| _ -> args
|
||||
|
||||
match hasData with
|
||||
| None -> (remaining, isTest, sources, Some [ List.ofSeq args ], mods, cats, repeat, comb)
|
||||
| Some existing ->
|
||||
|
Reference in New Issue
Block a user