did a few things
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user