Esempio n. 1
0
        public void AutoVivifyThrowsOnArrayMismatch()
        {
            var bson = new BsonDocument("a", "b");

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