public void GetEnumerator() { var list = new DictionaryReactiveCollectionSource <string, int> { { "Key1", 1 } }; using (var enumerator = list.GetEnumerator()) { enumerator.MoveNext().Should().BeTrue(); enumerator.Current.Should().Be(new KeyValuePair <string, int>("Key1", 1)); enumerator.MoveNext().Should().BeFalse(); } }
public void GetEnumerator() { var list = new DictionaryReactiveCollectionSource<string, int> { { "Key1", 1 } }; using (var enumerator = list.GetEnumerator()) { enumerator.MoveNext().Should().BeTrue(); enumerator.Current.Should().Be(new KeyValuePair<string, int>("Key1", 1)); enumerator.MoveNext().Should().BeFalse(); } }