public void TestClassWithBsonMinKeyId()
        {
            _collection.RemoveAll();

            var doc = new ClassWithBsonMinKeyId { Id = null, X = 1 };
            _collection.Insert(doc);
            Assert.AreEqual(null, doc.Id);

            doc = new ClassWithBsonMinKeyId { Id = BsonMinKey.Value, X = 1 };
            _collection.Insert(doc);
        }
Ejemplo n.º 2
0
        public void TestClassWithBsonMinKeyId()
        {
            _collection.RemoveAll();

            var doc = new ClassWithBsonMinKeyId { Id = null, X = 1 };
            _collection.Insert(doc);
            Assert.Equal(null, doc.Id);

            doc = new ClassWithBsonMinKeyId { Id = BsonMinKey.Value, X = 1 };
            _collection.Insert(doc);
        }