public void Contains() { var dict = new DictionaryReactiveCollectionSource <string, int> { { "Key", 1 } }; dict.Contains(new KeyValuePair <string, int>("Key", 1)).Should().BeTrue(); dict.Contains(new KeyValuePair <string, int>("Key1", 2)).Should().BeFalse(); }
public async Task Contains() { var dict = new DictionaryReactiveCollectionSource <string, int> { { "Key", 1 } }; await Verify(( dict.Contains(new KeyValuePair <string, int>("Key", 1)), dict.Contains(new KeyValuePair <string, int>("Key1", 2)))); }
public void Contains() { var dict = new DictionaryReactiveCollectionSource<string, int> { { "Key", 1 } }; dict.Contains(new KeyValuePair<string, int>("Key", 1)).Should().BeTrue(); dict.Contains(new KeyValuePair<string, int>("Key1", 2)).Should().BeFalse(); }