File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
tests/MongoDB.Driver.Tests/Search Expand file tree Collapse file tree 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(
11841184 """{"range":{ "gt" : "23", "path" : "DefaultLong" }}""" ) ;
11851185 }
11861186
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-
12041187 [ Fact ]
12051188 public void Range_with_array_field_should_render_correctly ( )
12061189 {
You can’t perform that action at this time.
0 commit comments