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 _))); }
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(); }