File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/FSharp.Control.TaskSeq.Test Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ let validateSequence ts =
2323 |> Task.map ( should equal " 1234567891012345678910" )
2424
2525module EmptySeq =
26+ let ``Null source is invalid`` () =
27+ let test1 () = TaskSeq.empty |> TaskSeq.append null |> TaskSeq.toList
28+ let test2 () = null |> TaskSeq.append TaskSeq.empty |> TaskSeq.toList
29+ let test3 () = null |> TaskSeq.append null |> TaskSeq.toList
30+ test1 |> should throw typeof< ArgumentNullException>
31+ test2 |> should throw typeof< ArgumentNullException>
32+ test3 |> should throw typeof< ArgumentNullException>
33+
2634 [<Theory; ClassData( typeof< TestEmptyVariants>) >]
2735 let ``TaskSeq - append both args empty`` variant =
2836 Gen.getEmptyVariant variant
You can’t perform that action at this time.
0 commit comments