Fix treatment of optionals which are not in TestCaseData (#49)

This commit is contained in:
Patrick Stevens
2024-06-09 12:24:58 +01:00
committed by GitHub
parent 8dc23d5b38
commit b600fab887
3 changed files with 10 additions and 3 deletions

View File

@@ -332,6 +332,7 @@ module TestFixture =
yield
Guid.NewGuid (),
match arg with
| null -> [| (null : obj) |]
| :? Tuple<obj, obj> as (a, b) -> [| a ; b |]
| :? Tuple<obj, obj, obj> as (a, b, c) -> [| a ; b ; c |]
| :? Tuple<obj, obj, obj, obj> as (a, b, c, d) -> [| a ; b ; c ; d |]