Skip to content

Commit 2681c81

Browse files
committed
[#240] [add] test
1 parent 5f01414 commit 2681c81

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using NUnit.Framework;
1+
using System.Collections.Generic;
2+
using NUnit.Framework;
23
using Simplify.Web.Model.Validation;
34
using Simplify.Web.Tests.Model.Validation.Attributes;
45
using Simplify.Web.Tests.TestEntities;
@@ -82,4 +83,17 @@ public void Validate_NotNullSystemTypes_NoExceptions()
8283
// Act
8384
_validator.Validate(model, null!);
8485
}
86+
87+
[Test]
88+
public void Validate_IList_NoExceptions()
89+
{
90+
// Arrange
91+
IList<TestModel> model = new List<TestModel>{
92+
{
93+
new() {Prop1 = "test"}
94+
}};
95+
96+
// Act
97+
_validator.Validate(model, null!);
98+
}
8599
}

0 commit comments

Comments
 (0)