/// <summary> /// Gets if the table contains a specific entry /// </summary> /// <param name="name">The entry name</param> /// <returns>True if the entry exists, otherwise false</returns> public static bool ContainsEntry(string name) { #if CORE return(CoreMethods.ContainsEntry(name)); #else return(GetType(name) != NtType.Unassigned); #endif }
public void TestContainsKeySuccess() { string key1 = "testKey"; string toWrite1 = "written"; CoreMethods.SetEntryString(key1, toWrite1); Assert.That(CoreMethods.ContainsEntry(key1)); }
public void TestContainsKeyNonExistentKey() { Assert.That(!CoreMethods.ContainsEntry("testKey")); }