Esempio n. 1
0
        public async Task TryGetValue()
        {
            var list = new DictionaryReactiveCollectionSource <string, int>
            {
                { "Key1", 1 }
            };

            await Verify((
                             list.TryGetValue("Key1", out var value),
                             value,
                             list.TryGetValue("Key2", out _)));
        }
Esempio n. 2
0
        public void TryGetValue()
        {
            var list = new DictionaryReactiveCollectionSource <string, int>
            {
                { "Key1", 1 }
            };

            int value;

            list.TryGetValue("Key1", out value).Should().BeTrue();
            value.Should().Be(1);
            list.TryGetValue("Key2", out value).Should().BeFalse();
        }
        public void TryGetValue()
        {
            var list = new DictionaryReactiveCollectionSource<string, int>
            {
                { "Key1", 1 }
            };

            int value;

            list.TryGetValue("Key1", out value).Should().BeTrue();
            value.Should().Be(1);
            list.TryGetValue("Key2", out value).Should().BeFalse();
        }