File tree Expand file tree Collapse file tree
tests/MongoDB.Bson.Tests/Serialization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ public class BsonClassMapGetDiscriminatorConventionTests
742742 [ Fact ]
743743 public void GetDiscriminatorConvention_should_throw_consistently_when_member_conflicts_with_discriminator_element_name ( )
744744 {
745- BsonSerializer . RegisterDiscriminatorConvention ( typeof ( Foo ) , new FooDiscriminatorConvention5816 ( ) ) ;
745+ BsonSerializer . RegisterDiscriminatorConvention ( typeof ( Foo ) , new FooDiscriminatorConvention ( ) ) ;
746746
747747 var classMap = new BsonClassMap < Foo > ( ) ;
748748 classMap . AutoMap ( ) ;
@@ -758,7 +758,7 @@ private class Foo
758758 public string Type { get ; set ; }
759759 }
760760
761- private class FooDiscriminatorConvention5816 : IDiscriminatorConvention
761+ private class FooDiscriminatorConvention : IDiscriminatorConvention
762762 {
763763 public string ElementName => "type" ;
764764 public Type GetActualType ( IBsonReader bsonReader , Type nominalType ) => nominalType ;
You can’t perform that action at this time.
0 commit comments