MongoDB.Driver.TestCollectionMetaData.TestDropIndex C# (CSharp) Метод

TestDropIndex() приватный Метод

private TestDropIndex ( ) : void
Результат void
        public void TestDropIndex()
        {
            CollectionMetaData cmd = db["tests"]["indextests"].MetaData;
            cmd.CreateIndex("firstnames", new Document().Append("fname", IndexOrder.Ascending), false);
            Dictionary<string, Document> indexes = cmd.Indexes;
            Assert.IsNotNull(indexes["firstnames"]);
            cmd.DropIndex("firstnames");
            Assert.IsFalse(cmd.Indexes.ContainsKey("firstnames"));
        }