did a few things

This commit is contained in:
2025-05-28 01:21:24 +02:00
parent 5b8dcb282f
commit c4ff84e8b6
10 changed files with 367 additions and 28 deletions
+1
View File
@@ -27,6 +27,7 @@ public class IpRangeTests
[TestCase("192.168.1.0/24", "10.0.0.1", false)]
[TestCase("176.2.0.0/16", "176.2.73.23", true)]
[TestCase("176.2.0.0/16", "176.2.70.50", true)]
[TestCase("176.2.0.0/16", "176.2.72.1", true)]
public void IsInRange_WithCidrNotation_ReturnsExpectedResult(string range, string ip, bool expected)
{
Assert.That(RangeBan.IsInRange(range, ip), Is.EqualTo(expected));