コード例 #1
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);
        }
コード例 #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
ファイル: CSharp231Tests.cs プロジェクト: RavenZZ/MDRelation
        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);
        }
コード例 #4
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);
        }