File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
tests/MongoDB.Bson.Tests/Serialization Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -145,20 +145,6 @@ public void TryRegisterSerializer_should_allow_serializer_for_base_type()
145145 subject . GetSerializer ( typeof ( List < Person > ) ) . Should ( ) . BeSameAs ( serializer ) ;
146146 }
147147
148- private class Person
149- {
150- public string Name { get ; set ; }
151- }
152-
153- private class PeopleSerializer : SerializerBase < IEnumerable < Person > >
154- {
155- public override void Serialize ( BsonSerializationContext context , BsonSerializationArgs args , IEnumerable < Person > value )
156- => throw new NotImplementedException ( ) ;
157-
158- public override IEnumerable < Person > Deserialize ( BsonDeserializationContext context , BsonDeserializationArgs args )
159- => throw new NotImplementedException ( ) ;
160- }
161-
162148 [ Fact ]
163149 public void TryRegisterSerializer_should_return_true_when_serializer_is_not_already_registered ( )
164150 {
@@ -251,5 +237,19 @@ public void TryRegisterSerializer_should_throw_when_different_serializer_is_alre
251237 exception . Should ( ) . BeOfType < BsonSerializationException > ( ) ;
252238 exception . Message . Should ( ) . Contain ( "There is already a different serializer registered for type Object" ) ;
253239 }
240+
241+ private class Person
242+ {
243+ public string Name { get ; set ; }
244+ }
245+
246+ private class PeopleSerializer : SerializerBase < IEnumerable < Person > >
247+ {
248+ public override void Serialize ( BsonSerializationContext context , BsonSerializationArgs args , IEnumerable < Person > value )
249+ => throw new NotImplementedException ( ) ;
250+
251+ public override IEnumerable < Person > Deserialize ( BsonDeserializationContext context , BsonDeserializationArgs args )
252+ => throw new NotImplementedException ( ) ;
253+ }
254254 }
255255}
You can’t perform that action at this time.
0 commit comments