public void DictDocumentCount() { BsonDictionary <int, string> dict = new BsonDictionary <int, string>(); Assert.AreEqual(0, dict.Count); dict.Add(1, null); Assert.AreEqual(1, dict.Count); dict.Add(1, ""); Assert.AreEqual(1, dict.Count); dict.Add(2, ""); Assert.AreEqual(2, dict.Count); dict.Remove(1); Assert.AreEqual(1, dict.Count); }
public Enumerator(BsonDictionary <TKey, TValue> list) { _Enumerator = list.internalItems.GetEnumerator(); }