public void Enumerator_ImplementsIDisposible() { using (var enumeratorDisposible = new ODDictionaryEnumerator <string, string>(innerList, null)) // using block demonstrates IDisposible interface { Assert.Pass("Didn't throw an error"); } }
public void Setup() { innerList = new List <KeyValuePair <String, String> >(); innerList.Add(new KeyValuePair <string, string>("Key", "Value")); innerList.Add(new KeyValuePair <string, string>("Key2", "Value2")); enumerator = new ODDictionaryEnumerator <string, string>(innerList, null); }