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

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

            doc = new ClassWithBsonInt64Id { Id = new BsonInt64(0), X = 1 };
            _collection.Insert(doc);

            doc = new ClassWithBsonInt64Id { Id = new BsonInt64(1), X = 1 };
            _collection.Insert(doc);
        }
Esempio n. 2
0
        public void TestClassWithBsonInt64Id()
        {
            collection.RemoveAll();

            var doc = new ClassWithBsonInt64Id {
                Id = null, X = 1
            };

            collection.Insert(doc);

            doc = new ClassWithBsonInt64Id {
                Id = BsonInt64.Create(0), X = 1
            };
            collection.Insert(doc);

            doc = new ClassWithBsonInt64Id {
                Id = BsonInt64.Create(1), X = 1
            };
            collection.Insert(doc);
        }
Esempio n. 3
0
        public void TestClassWithBsonInt64Id()
        {
            _collection.RemoveAll();

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

            doc = new ClassWithBsonInt64Id { Id = new BsonInt64(0), X = 1 };
            _collection.Insert(doc);

            doc = new ClassWithBsonInt64Id { Id = new BsonInt64(1), X = 1 };
            _collection.Insert(doc);
        }
        public void TestClassWithBsonInt64Id()
        {
            collection.RemoveAll();

            var doc = new ClassWithBsonInt64Id { Id = null, X = 1 };
            collection.Insert(doc);

            doc = new ClassWithBsonInt64Id { Id = BsonInt64.Create(0), X = 1 };
            collection.Insert(doc);

            doc = new ClassWithBsonInt64Id { Id = BsonInt64.Create(1), X = 1 };
            collection.Insert(doc);
        }