public void TestContainsKeySuccess() { string key1 = "testKey"; string toWrite1 = "written"; CoreMethods.SetEntryString(key1, toWrite1); Assert.That(CoreMethods.ContainsKey(key1)); }
public void TestContainsKeyNonExistentKey() { Assert.That(!CoreMethods.ContainsKey("testKey")); }
/// <summary> /// Checkts the table and tells if it contains the specified key. /// </summary> /// <param name="key">The key to be checked.</param> /// <returns>True if the table contains the key, otherwise false.</returns> public bool ContainsKey(string key) { return(CoreMethods.ContainsKey(m_path + PathSeperatorChar + key)); }