Fix behaviour on Null testcasedata (#21)

This commit is contained in:
Patrick Stevens
2024-06-05 13:44:37 +01:00
committed by GitHub
parent eaffcc400b
commit 92d2c9b2a5

View File

@@ -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