Skip to content

Commit

Permalink
fix incorrect IPv6 subnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
longshine committed Nov 2, 2014
1 parent 32237f1 commit c94a847
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Mina.Test/Filter/Firewall/SubnetTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ public void TestIPv6()

Assert.IsTrue(addr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6);

try
{
new Subnet(addr, 24);
Assert.Fail("IPv6 not supported");
}
catch (ArgumentException)
{
// signifies a successful test execution
Assert.IsTrue(true);
}
new Subnet(addr, 24);
}

[TestMethod]
Expand Down

0 comments on commit c94a847

Please sign in to comment.