public async Task GetPrivateKeyAfterLockCorrectTest() { var ekey = new EncryptionKey(FakeDataGenerator.DefaultDto.BasicEncryptedMessage, "", true); ekey.LoadPassword(FakeDataGenerator.DefaultDto.BasicPassword); var key = ekey.GetEncryptedKey(); Assert.Equal(FakeDataGenerator.DefaultDto.BasicMessage, key); ekey.Lock(); var nkey = ekey.GetEncryptedKey(); Assert.Null(nkey); }