File tree 1 file changed +0
-17
lines changed
tests/MongoDB.Driver.Tests/Search
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -1184,23 +1184,6 @@ public void Range_should_use_correct_serializers_when_using_serializer_registry(
1184
1184
"""{"range":{ "gt" : "23", "path" : "DefaultLong" }}""" ) ;
1185
1185
}
1186
1186
1187
- [ Theory ]
1188
- [ MemberData ( nameof ( RangeUnsupportedTypesTestData ) ) ]
1189
- public void Range_should_throw_on_unsupported_types < T > ( T value , Expression < Func < Person , T > > fieldExpression )
1190
- {
1191
- var subject = CreateSubject < BsonDocument > ( ) ;
1192
- Record . Exception ( ( ) => subject . Range ( "age" , SearchRangeV2Builder . Gte ( value ) . Lt ( value ) ) . Render ( new RenderArgs < BsonDocument > ( ) ) ) . Should ( ) . BeOfType < InvalidCastException > ( ) ;
1193
-
1194
- var subjectTyped = CreateSubject < Person > ( ) ;
1195
- Record . Exception ( ( ) => subjectTyped . Range ( fieldExpression , SearchRangeV2Builder . Gte ( value ) . Lt ( value ) ) . Render ( new RenderArgs < Person > ( ) ) ) . Should ( ) . BeOfType < InvalidCastException > ( ) ;
1196
- }
1197
-
1198
- public static object [ ] [ ] RangeUnsupportedTypesTestData => new [ ]
1199
- {
1200
- new object [ ] { ( ulong ) 1 , Exp ( p => p . UInt64 ) } ,
1201
- new object [ ] { TimeSpan . Zero , Exp ( p => p . TimeSpan ) } ,
1202
- } ;
1203
-
1204
1187
[ Fact ]
1205
1188
public void Range_with_array_field_should_render_correctly ( )
1206
1189
{
You can’t perform that action at this time.
0 commit comments