feat: add property path support
This commit is contained in:
parent
de2d0e2693
commit
8f54ff4e31
8 changed files with 276 additions and 49 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue