public void GetEnumerator()
 {
     using (var enumerator = _store.GetEnumerator())
     {
         Assert.That(enumerator.MoveNext(), Is.True);
         Assert.That(enumerator.Current.Key, Is.EqualTo("a"));
         Assert.That(enumerator.MoveNext(), Is.True);
         Assert.That(enumerator.Current.Key, Is.EqualTo("b"));
         Assert.That(enumerator.MoveNext(), Is.False);
     }
 }
Example #2
0
 private IEnumerator <KeyValuePair <TKey, TValue> > GetEnumerator()
 {
     return(_dataStore.GetEnumerator());
 }