public void Apply_MapWithStringId_LeavesSerializer() { var target = new IdAsStringWithObjectIdAsBsonTypeConvention(); var subject = new BsonClassMap <SampleWithIntId>(cm => cm.AutoMap()).GetMemberMap("Id"); target.Apply(subject); Assert.IsNotType <StringSerializer>(subject.GetSerializer()); }