Skip to content

Commit ede22bb

Browse files
committed
[add] array validation
1 parent 2681c81 commit ede22bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,17 @@ public void Validate_IList_NoExceptions()
9696
// Act
9797
_validator.Validate(model, null!);
9898
}
99+
100+
[Test]
101+
public void Validate_Array_NoExceptions()
102+
{
103+
// Arrange
104+
var model = new TestModel[]
105+
{
106+
new() { Prop1 = "test" }
107+
};
108+
109+
// Act
110+
_validator.Validate(model, null!);
111+
}
99112
}

0 commit comments

Comments
 (0)