We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f01414 commit 2681c81Copy full SHA for 2681c81
src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs
@@ -1,4 +1,5 @@
1
-using NUnit.Framework;
+using System.Collections.Generic;
2
+using NUnit.Framework;
3
using Simplify.Web.Model.Validation;
4
using Simplify.Web.Tests.Model.Validation.Attributes;
5
using Simplify.Web.Tests.TestEntities;
@@ -82,4 +83,17 @@ public void Validate_NotNullSystemTypes_NoExceptions()
82
83
// Act
84
_validator.Validate(model, null!);
85
}
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
+ }
99
0 commit comments