16
16
using System ;
17
17
using System . Linq ;
18
18
using FluentAssertions ;
19
+ using MongoDB . Driver . Core . Misc ;
20
+ using MongoDB . Driver . Core . TestHelpers . XunitExtensions ;
19
21
using MongoDB . Driver . Linq ;
20
22
using MongoDB . Driver . Tests . Linq . Linq3ImplementationTests ;
21
23
using Xunit ;
@@ -29,6 +31,7 @@ public class CSharp3225Tests
29
31
[ Fact ]
30
32
public void Use_documents_window_to_obtain_cumulative_quantity_for_each_state_example_should_work ( )
31
33
{
34
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
32
35
var collection = Setup ( ) ;
33
36
34
37
var aggregate = collection
@@ -73,6 +76,7 @@ public void Use_documents_window_to_obtain_cumulative_quantity_for_each_state_ex
73
76
[ Fact ]
74
77
public void Use_documents_window_to_obtain_cumulative_quantity_for_each_year_example_should_work ( )
75
78
{
79
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
76
80
var collection = Setup ( ) ;
77
81
78
82
var aggregate = collection
@@ -117,6 +121,7 @@ public void Use_documents_window_to_obtain_cumulative_quantity_for_each_year_exa
117
121
[ Fact ]
118
122
public void Use_documents_window_to_obtain_moving_average_quantity_for_each_year_example_should_work ( )
119
123
{
124
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
120
125
var collection = Setup ( ) ;
121
126
122
127
var aggregate = collection
@@ -161,6 +166,7 @@ public void Use_documents_window_to_obtain_moving_average_quantity_for_each_year
161
166
[ Fact ]
162
167
public void Use_documents_window_to_obtain_cumulative_and_maximum_quantity_for_each_year_example_should_work ( )
163
168
{
169
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
164
170
var collection = Setup ( ) ;
165
171
166
172
var aggregate = collection
@@ -215,6 +221,7 @@ public void Use_documents_window_to_obtain_cumulative_and_maximum_quantity_for_e
215
221
[ Fact ]
216
222
public void Range_window_example_should_work ( )
217
223
{
224
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
218
225
var collection = Setup ( ) ;
219
226
220
227
var aggregate = collection
@@ -259,6 +266,7 @@ public void Range_window_example_should_work()
259
266
[ Fact ]
260
267
public void Use_a_time_range_window_with_a_positive_upper_bound_example_should_work ( )
261
268
{
269
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
262
270
var collection = Setup ( ) ;
263
271
264
272
var aggregate = collection
@@ -304,6 +312,7 @@ public void Use_a_time_range_window_with_a_positive_upper_bound_example_should_w
304
312
[ Fact ]
305
313
public void Use_a_time_range_window_with_a_negative_upper_bound_example_should_work ( )
306
314
{
315
+ RequireServer . Check ( ) . Supports ( Feature . SetWindowFields ) ;
307
316
var collection = Setup ( ) ;
308
317
309
318
var aggregate = collection
0 commit comments