public void RemoveDictionarySlim() { for (int i = 0; i < _removeOrder.Length; i++) { _dictSlim.Remove(_removeOrder[i]); } Assert.Equal(0, _dictSlim.Count); }
public void TryGetValue_Missing() { var d = new DictionarySlim <char, int>(); d.GetOrAddValueRef('a') = 9; d.GetOrAddValueRef('b') = 11; d.Remove('b'); Assert.Equal(false, d.TryGetValue('z', out int value)); Assert.Equal(default, value);