Fixed issues "Do not negate boolean assertions, instead use the opposite assertion"

This commit is contained in:
2025-06-17 19:58:02 +02:00
parent 11a9696bdd
commit 061ce4cb3d

View File

@@ -107,7 +107,7 @@ public class CryptoUtils_Tests
try try
{ {
var salt = CryptUtils.GeneratePepper(); var salt = CryptUtils.GeneratePepper();
Assert.IsTrue(!String.IsNullOrEmpty(salt)); Assert.IsFalse(String.IsNullOrEmpty(salt));
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -123,7 +123,7 @@ public class CryptoUtils_Tests
{ {
var password = "P4ssw0rd@1!"; var password = "P4ssw0rd@1!";
var pepper = CryptUtils.GeneratePepper(); var pepper = CryptUtils.GeneratePepper();
Assert.IsTrue(!String.IsNullOrEmpty(pepper)); Assert.IsFalse(String.IsNullOrEmpty(pepper));
WebApplicationBuilder builder = WebApplication.CreateBuilder(Array.Empty<string>()); WebApplicationBuilder builder = WebApplication.CreateBuilder(Array.Empty<string>());
AppSettings appSettings = ProgramUtils.AddConfiguration(ref builder, System.AppDomain.CurrentDomain.BaseDirectory + "/JsonData"); AppSettings appSettings = ProgramUtils.AddConfiguration(ref builder, System.AppDomain.CurrentDomain.BaseDirectory + "/JsonData");