public void ObjectIdSerializationDeserialization() { var buffer = new byte[12]; var oid = new BsonObjectId("5f987814bf344ec7cc57294b"); oid.TryWriteBytes(buffer); var newOid = new BsonObjectId(buffer); Assert.Equal(oid, newOid); }
public void ObjectIdSerializationDeserialization() { var buffer = new byte[12]; var oid = new BsonObjectId("5f987814bf344ec7cc57294b"); oid.TryWriteBytes(buffer); var newOid = new BsonObjectId(buffer); Assert.Equal(oid, newOid); }