mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-06 01:48:38 +00:00
Compare commits
1 Commits
WoofWare.N
...
WoofWare.N
Author | SHA1 | Date | |
---|---|---|---|
|
b3bc0aa4c0 |
@@ -35,6 +35,13 @@ module TestCaseData =
|
|||||||
[<TestCaseSource(nameof optionalRaw)>]
|
[<TestCaseSource(nameof optionalRaw)>]
|
||||||
let ``Consume options, raw`` (s : string option) : unit = s |> shouldEqual s
|
let ``Consume options, raw`` (s : string option) : unit = s |> shouldEqual s
|
||||||
|
|
||||||
|
[<TestCase(30, 15, 44, false)>]
|
||||||
|
let bug66 (i : int, j : int, k : int, l : bool) =
|
||||||
|
i |> shouldEqual 30
|
||||||
|
j |> shouldEqual 15
|
||||||
|
k |> shouldEqual 44
|
||||||
|
l |> shouldEqual false
|
||||||
|
|
||||||
[<OneTimeTearDown>]
|
[<OneTimeTearDown>]
|
||||||
let tearDown () =
|
let tearDown () =
|
||||||
testCasesSeen
|
testCasesSeen
|
||||||
|
@@ -30,6 +30,15 @@ module SingleTestMethod =
|
|||||||
| "NUnit.Framework.TestCaseAttribute" ->
|
| "NUnit.Framework.TestCaseAttribute" ->
|
||||||
let args = attr.ConstructorArguments |> Seq.map _.Value |> Seq.toList
|
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
|
match hasData with
|
||||||
| None -> (remaining, isTest, sources, Some [ List.ofSeq args ], mods, cats, repeat, comb)
|
| None -> (remaining, isTest, sources, Some [ List.ofSeq args ], mods, cats, repeat, comb)
|
||||||
| Some existing ->
|
| Some existing ->
|
||||||
|
Reference in New Issue
Block a user