public void Generates_unique_object_ids() { var tmeporaryObjectIdValueGenerator = new ObjectIdValueGenerator(); ObjectId id = ObjectId.Empty; for (var i = 0; i < 100; i++) { Assert.NotEqual(id, id = tmeporaryObjectIdValueGenerator.Next(entry: null)); } }
public void Does_not_generate_empty_object_id() { var tmeporaryObjectIdValueGenerator = new ObjectIdValueGenerator(); Assert.NotEqual(ObjectId.Empty, tmeporaryObjectIdValueGenerator.Next(entry: null)); }