public void FindsContainedValue() { HashTbl <int> table = new HashTbl <int>(16); table.Add("Josie", 9); table.Add("Dog", 10); table.Add("Cupcake", 5); var contains = table.Contains("Cupcake"); Assert.True(contains); }
public void CanReturnNullIfKeyDoesntExist() { HashTbl <int> table = new HashTbl <int>(16); table.Add("Josie", 9); table.Add("Dog", 10); table.Add("Cupcake", 5); var contains = table.Contains("Mango"); Assert.False(contains); }