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

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

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

            doc = new ClassWithBsonInt32Id { Id = new BsonInt32(1), X = 1 };
            _collection.Insert(doc);
        }
示例#2
0
        public void TestClassWithBsonInt32Id()
        {
            collection.RemoveAll();

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

            collection.Insert(doc);

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

            doc = new ClassWithBsonInt32Id {
                Id = BsonInt32.Create(1), X = 1
            };
            collection.Insert(doc);
        }
示例#3
0
        public void TestClassWithBsonInt32Id()
        {
            _collection.RemoveAll();

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

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

            doc = new ClassWithBsonInt32Id { Id = new BsonInt32(1), X = 1 };
            _collection.Insert(doc);
        }
        public void TestClassWithBsonInt32Id()
        {
            collection.RemoveAll();

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

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

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