chore(tests): dotnet format sobre archivos pre-existentes #32

Merged
dmolinari merged 1 commits from chore/dotnet-format-testfixtures into main 2026-04-19 10:41:15 +00:00
13 changed files with 110 additions and 102 deletions

View File

@@ -44,7 +44,7 @@ public sealed class PermisoResolverTests
Assert.DoesNotContain("A", result);
Assert.Contains("B", result);
Assert.Equal(1, result.Count);
Assert.Single(result);
}
// R-04: Grant duplicado (ya en rol) → idempotente, no duplicados

View File

@@ -66,10 +66,10 @@ public class TempPasswordGeneratorTests
{
var pwd = TempPasswordGenerator.Generate(12);
Assert.True(pwd.Length >= 12);
Assert.True(pwd.Any(char.IsUpper));
Assert.True(pwd.Any(char.IsLower));
Assert.True(pwd.Any(char.IsDigit));
Assert.True(pwd.Any(c => symbols.Contains(c)));
Assert.Contains(pwd, char.IsUpper);
Assert.Contains(pwd, char.IsLower);
Assert.Contains(pwd, char.IsDigit);
Assert.Contains(pwd, c => symbols.Contains(c));
}
}

View File

@@ -154,9 +154,17 @@ public sealed class JsonSanitizerTests
var input = new
{
password = "1", passwordHash = "2", token = "3", refreshToken = "4",
accessToken = "5", cvv = "6", card = "7", cardNumber = "8",
secret = "9", apiKey = "10", privateKey = "11",
password = "1",
passwordHash = "2",
token = "3",
refreshToken = "4",
accessToken = "5",
cvv = "6",
card = "7",
cardNumber = "8",
secret = "9",
apiKey = "10",
privateKey = "11",
keep = "yes",
};

View File

@@ -42,7 +42,7 @@ public class ListTiposDeIvaQueryHandlerTests
var result = await _handler.Handle(new ListTiposDeIvaQuery(1, 10, null, null));
Assert.Equal(0, result.Items.Count);
Assert.Empty(result.Items);
Assert.Equal(0, result.Total);
}