public void AccessingALockedKeyringPromptsToUnlock() { string keyringName = "akeyring"; Ring.CreateKeyring(keyringName, "password"); try { Ring.Lock(keyringName); Ring.CreateItem(keyringName, ItemType.Note, "Random note", new Hashtable(), "reallysecret", false); } finally { Ring.DeleteKeyring(keyringName); } }