feat: add property path support

This commit is contained in:
Louis Seubert 2026-05-16 11:38:17 +02:00
commit 8f54ff4e31
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
8 changed files with 276 additions and 49 deletions

View file

@ -311,7 +311,7 @@ internal sealed class RuleBuilderExtensionsTests
.Throws<ArgumentOutOfRangeException>();
}
private static async Task AssertSingleProblem(Validation validation, string propertyName, string message)
private static async Task AssertSingleProblem(Validation validation, string propertyPath, string message)
{
await Assert.That(validation.Problems).Count().IsEqualTo(1);
@ -319,7 +319,7 @@ internal sealed class RuleBuilderExtensionsTests
using (Assert.Multiple())
{
await Assert.That(problem.PropertyName).IsEqualTo(propertyName);
await Assert.That(problem.PropertyPath).IsEqualTo(propertyPath);
await Assert.That(problem.Message).IsEqualTo(message);
}
}