예제 #1
0
        public void AutoVivifyThrowsOnArrayMismatch()
        {
            var bson = new BsonDocument("a", "b");

            Assert.Throws <ArgumentException>(() => bson.AutoVivify("a", BsonType.Array));
        }
예제 #2
0
 public void AutoVivifyThrowsOnArrayMismatch()
 {
     var bson = new BsonDocument("a", "b");
     Assert.Throws<ArgumentException>(() => bson.AutoVivify("a", BsonType.Array));
 }