From 215efff4e2bbf15b695321a67807cad8074aefb8 Mon Sep 17 00:00:00 2001 From: Stevo Date: Sat, 13 Jan 2024 15:03:24 +0000 Subject: [PATCH] WIP --- src/Security.Tests/Crypto/CipherTests.cs | 2 +- src/Security.Tests/Random/RngTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security.Tests/Crypto/CipherTests.cs b/src/Security.Tests/Crypto/CipherTests.cs index bdb5caf..543fde7 100644 --- a/src/Security.Tests/Crypto/CipherTests.cs +++ b/src/Security.Tests/Crypto/CipherTests.cs @@ -28,7 +28,7 @@ public void Encrypts_data_and_decrypting_yields_initial_secret() var cipherBytes = _cipher.Encrypt(secretBytes, key, iv, salt); - Assert.That(secretBytes, Is.EqualTo(cipherBytes)); + Assert.That(secretBytes, Is.Not.EqualTo(cipherBytes)); var decipheredBytes = _cipher.Decrypt(cipherBytes, key, iv, salt); diff --git a/src/Security.Tests/Random/RngTests.cs b/src/Security.Tests/Random/RngTests.cs index 90a8ce1..f461006 100644 --- a/src/Security.Tests/Random/RngTests.cs +++ b/src/Security.Tests/Random/RngTests.cs @@ -23,7 +23,7 @@ public void GetBytes_returns_different_data_on_subsequent_calls() _rng.GetBytes(first); _rng.GetBytes(second); - Assert.That(first, Is.EqualTo(second)); + Assert.That(first, Is.Not.EqualTo(second)); } } } \ No newline at end of file