public void SetKeyringInfoUpdatesLockTimeout() { string keyringName = "testkeyring"; Ring.CreateKeyring(keyringName, "password"); try { KeyringInfo info = Ring.GetKeyringInfo(keyringName); info.LockTimeoutSeconds++; Assert.AreNotEqual(info.LockTimeoutSeconds, Ring.GetKeyringInfo(keyringName).LockTimeoutSeconds); Ring.Unlock(keyringName, null); Ring.SetKeyringInfo(keyringName, info); Assert.AreEqual(info.LockTimeoutSeconds, Ring.GetKeyringInfo(keyringName).LockTimeoutSeconds); } finally { Ring.DeleteKeyring(keyringName); } }