public void TryGetValueTest_Missing_Pass() { var dict = new BiDictionaryOneToOne <int, int> { { 0, 815 }, }; Assert.False(dict.TryGetValue(42, out _)); }
public void TryGetValueTest_Exists_Pass() { var dict = new BiDictionaryOneToOne <int, int> { { 0, 815 }, }; Assert.True(dict.TryGetValue(0, out var second)); Assert.Equal(815, second); }