We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a88a19f commit d00dca2Copy full SHA for d00dca2
1 file changed
src/FSharp.Control.TaskSeq.Test/TaskSeq.Append.Tests.fs
@@ -23,6 +23,14 @@ let validateSequence ts =
23
|> Task.map (should equal "1234567891012345678910")
24
25
module 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
+
34
[<Theory; ClassData(typeof<TestEmptyVariants>)>]
35
let ``TaskSeq-append both args empty`` variant =
36
Gen.getEmptyVariant variant
0 commit comments