예제 #1
0
        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();
        }
예제 #2
0
        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();
        }