@@ -66,11 +66,9 @@ let main _ =
66
66
|> shouldSucceed
67
67
|> run
68
68
|> shouldSucceed
69
- |> withOutputContainsAllInOrder [
70
- " disposed 1"
71
- " disposed 3"
72
- " disposed 2"
73
- ]
69
+ |> withStdOutContains " disposed 1"
70
+ |> withStdOutContains " disposed 2"
71
+ |> withStdOutContains " disposed 3"
74
72
75
73
[<Fact>]
76
74
let ``Both named and discard patterns in custom computation expression use ! binding`` () =
@@ -125,10 +123,8 @@ let main _ =
125
123
|> shouldSucceed
126
124
|> run
127
125
|> shouldSucceed
128
- |> withOutputContainsAllInOrder [
129
- " Counter with value 4 disposed"
130
- " Counter with value 5 disposed"
131
- ]
126
+ |> withStdOutContains " Counter with value 4 disposed"
127
+ |> withStdOutContains " Counter with value 5 disposed"
132
128
133
129
module UseBangBindingsPreviewTests =
134
130
[<Fact>]
@@ -171,16 +167,14 @@ let main _ =
171
167
|> shouldSucceed
172
168
|> run
173
169
|> shouldSucceed
174
- |> withOutputContainsAllInOrder [
175
- " Starting async workflow"
176
- " Created counter with value 5"
177
- " Created counter with value 4"
178
- " Created counter with value 3"
179
- " Done using the resource"
180
- " Counter with value 3 disposed"
181
- " Counter with value 4 disposed"
182
- " Counter with value 5 disposed"
183
- ]
170
+ |> withStdOutContains " Starting async workflow"
171
+ |> withStdOutContains " Created counter with value 5"
172
+ |> withStdOutContains " Created counter with value 4"
173
+ |> withStdOutContains " Created counter with value 3"
174
+ |> withStdOutContains " Done using the resource"
175
+ |> withStdOutContains " Counter with value 3 disposed"
176
+ |> withStdOutContains " Counter with value 4 disposed"
177
+ |> withStdOutContains " Counter with value 5 disposed"
184
178
185
179
[<Fact>]
186
180
let ``Discard pattern allowed in async use ! binding 2`` () =
@@ -210,12 +204,10 @@ let main _ =
210
204
|> shouldSucceed
211
205
|> run
212
206
|> shouldSucceed
213
- |> withOutputContainsAllInOrder [
214
- " disposed 1"
215
- " disposed 4"
216
- " disposed 3"
217
- " disposed 2"
218
- ]
207
+ |> withStdOutContains " disposed 1"
208
+ |> withStdOutContains " disposed 2"
209
+ |> withStdOutContains " disposed 3"
210
+ |> withStdOutContains " disposed 4"
219
211
220
212
[<Fact>]
221
213
let ``Both named and discard patterns in custom computation expression use ! binding`` () =
@@ -271,11 +263,9 @@ let main _ =
271
263
|> shouldSucceed
272
264
|> run
273
265
|> shouldSucceed
274
- |> withOutputContainsAllInOrder [
275
- " Counter with value 3 disposed"
276
- " Counter with value 4 disposed"
277
- " Counter with value 5 disposed"
278
- ]
266
+ |> withStdOutContains " Counter with value 3 disposed"
267
+ |> withStdOutContains " Counter with value 4 disposed"
268
+ |> withStdOutContains " Counter with value 5 disposed"
279
269
280
270
[<Fact>]
281
271
let ``Discard patterns are allowed in use and use ! binding`` () =
@@ -330,7 +320,5 @@ let main _ =
330
320
|> shouldSucceed
331
321
|> run
332
322
|> shouldSucceed
333
- |> withOutputContainsAllInOrder [
334
- " Counter with value 2 disposed"
335
- " disposed 1"
336
- ]
323
+ |> withStdOutContains " disposed 1"
324
+ |> withStdOutContains " Counter with value 2 disposed"
0 commit comments