Skip to content

Commit

Permalink
[#240] [add] test
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Nov 6, 2023
1 parent 5f01414 commit 2681c81
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -82,4 +83,17 @@ public void Validate_NotNullSystemTypes_NoExceptions()
// Act
_validator.Validate(model, null!);
}

[Test]
public void Validate_IList_NoExceptions()
{
// Arrange
IList<TestModel> model = new List<TestModel>{
{
new() {Prop1 = "test"}
}};

// Act
_validator.Validate(model, null!);
}
}

0 comments on commit 2681c81

Please sign in to comment.