Skip to content

Commit d132af3

Browse files
committed
test: 增加单元测试
1 parent 544fcd2 commit d132af3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/UnitTest/Utils/UtilityTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,10 @@ public void ConvertToIpEndPoint_Ok()
758758
{
759759
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => Utility.ConvertToIpEndPoint("localhost", 88990));
760760
Assert.NotNull(ex);
761+
762+
ex = null;
763+
ex = Assert.Throws<ArgumentOutOfRangeException>(() => Utility.ConvertToIpEndPoint("localhost", -1000));
764+
Assert.NotNull(ex);
761765
}
762766

763767
[AutoGenerateClass(Align = Alignment.Center)]

0 commit comments

Comments
 (0)