From 061ce4cb3d7eb88a622f654af480af458c188b5d Mon Sep 17 00:00:00 2001 From: csimonapastore Date: Tue, 17 Jun 2025 19:58:02 +0200 Subject: [PATCH] Fixed issues "Do not negate boolean assertions, instead use the opposite assertion" --- MainProject.Tests/Utils/CryptUtils_Tests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainProject.Tests/Utils/CryptUtils_Tests.cs b/MainProject.Tests/Utils/CryptUtils_Tests.cs index d29e343..ad27193 100644 --- a/MainProject.Tests/Utils/CryptUtils_Tests.cs +++ b/MainProject.Tests/Utils/CryptUtils_Tests.cs @@ -107,7 +107,7 @@ public class CryptoUtils_Tests try { var salt = CryptUtils.GeneratePepper(); - Assert.IsTrue(!String.IsNullOrEmpty(salt)); + Assert.IsFalse(String.IsNullOrEmpty(salt)); } catch (Exception ex) { @@ -123,7 +123,7 @@ public class CryptoUtils_Tests { var password = "P4ssw0rd@1!"; var pepper = CryptUtils.GeneratePepper(); - Assert.IsTrue(!String.IsNullOrEmpty(pepper)); + Assert.IsFalse(String.IsNullOrEmpty(pepper)); WebApplicationBuilder builder = WebApplication.CreateBuilder(Array.Empty()); AppSettings appSettings = ProgramUtils.AddConfiguration(ref builder, System.AppDomain.CurrentDomain.BaseDirectory + "/JsonData");