diff --git a/labs/CodeLabs/CodeLabs.Tests/Oefening2PasswordHasherTests.cs b/labs/CodeLabs/CodeLabs.Tests/Oefening2PasswordHasherTests.cs index 93bd310..2fa26b4 100644 --- a/labs/CodeLabs/CodeLabs.Tests/Oefening2PasswordHasherTests.cs +++ b/labs/CodeLabs/CodeLabs.Tests/Oefening2PasswordHasherTests.cs @@ -37,7 +37,7 @@ public void SamePassword_GivesDifferentHashes_BecauseOfRandomSalt() => public void StoredValue_IsNotAPlainFastHash() { var plain = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes("wachtwoord"))); - Assert.NotEqual(plain, PasswordHasher.Hash("wachtwoord"), ignoreCase: true); + Assert.NotEqual(plain.ToLowerInvariant(), PasswordHasher.Hash("wachtwoord").ToLowerInvariant()); } [Fact, Trait("Category", "Security")]