mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-06 09:48:40 +00:00
Fix behaviour on Null testcasedata (#21)
This commit is contained in:
@@ -21,3 +21,8 @@ module TestCaseData =
|
||||
[<TestCaseSource(nameof dataSource)>]
|
||||
let ``Consume test data`` (i : int, s : string, arr : float[]) =
|
||||
lock testCasesSeen (fun () -> testCasesSeen.Add (i, s, arr))
|
||||
|
||||
let optional = [ Some "hi" ; None ] |> List.map TestCaseData
|
||||
|
||||
[<TestCaseSource(nameof optional)>]
|
||||
let ``Consume options`` (s : string option) : unit = s |> shouldEqual s
|
||||
|
Reference in New Issue
Block a user