From 2681c818afead1574eeb181b8c7c4bf6d7a1e1c5 Mon Sep 17 00:00:00 2001 From: Alexanderius Date: Mon, 6 Nov 2023 16:31:44 +0600 Subject: [PATCH] [#240] [add] test --- .../ValidationAttributesExecutorTests.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs b/src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs index f0147436..c1b38b46 100644 --- a/src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs +++ b/src/Simplify.Web.Tests/Model/Validation/ValidationAttributesExecutorTests.cs @@ -1,4 +1,5 @@ -using NUnit.Framework; +using System.Collections.Generic; +using NUnit.Framework; using Simplify.Web.Model.Validation; using Simplify.Web.Tests.Model.Validation.Attributes; using Simplify.Web.Tests.TestEntities; @@ -82,4 +83,17 @@ public void Validate_NotNullSystemTypes_NoExceptions() // Act _validator.Validate(model, null!); } + + [Test] + public void Validate_IList_NoExceptions() + { + // Arrange + IList model = new List{ + { + new() {Prop1 = "test"} + }}; + + // Act + _validator.Validate(model, null!); + } } \ No newline at end of file