diff --git a/tests/SIGCM2.Api.Tests/Usuarios/CreateUsuarioEndpointTests.cs b/tests/SIGCM2.Api.Tests/Usuarios/CreateUsuarioEndpointTests.cs index 0864609..1fa0570 100644 --- a/tests/SIGCM2.Api.Tests/Usuarios/CreateUsuarioEndpointTests.cs +++ b/tests/SIGCM2.Api.Tests/Usuarios/CreateUsuarioEndpointTests.cs @@ -421,7 +421,7 @@ public sealed class CreateUsuarioEndpointTests : IAsyncLifetime var json = await resp.Content.ReadFromJsonAsync(); Assert.True(json.TryGetProperty("errors", out var errors), "Response must contain 'errors'"); // Validation error should be on the Rol field - Assert.True(errors.EnumerateObject().Any(p => p.Name.Equals("Rol", StringComparison.OrdinalIgnoreCase))); + Assert.Contains(errors.EnumerateObject(), p => p.Name.Equals("Rol", StringComparison.OrdinalIgnoreCase)); } finally {