public void CanTryGetValueFromAutoDictionaryWhenNoEntryExists() { AutoDictionary <string, bool> tested = new AutoDictionary <string, bool>(); Assert.AreEqual(true, tested.TryGetValue("Hello", out bool outvalue)); Assert.AreEqual(false, outvalue); }
public void CanTryGetValueFromAutoDictionary() { AutoDictionary <string, bool> tested = new AutoDictionary <string, bool>(); tested["Hello"] = true; Assert.AreEqual(true, tested.TryGetValue("Hello", out bool outvalue)); Assert.AreEqual(true, outvalue); }
public bool TryGetValue(string key, out string value) => inner.TryGetValue(key.ToLower(), out value);