Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: lduchosal <[email protected]>
  • Loading branch information
lduchosal and lduchosal authored Aug 16, 2021
1 parent 5e17c63 commit 218723e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/System.Net.IPNetwork.TestProject.Source/IPNetworkUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,20 @@ public void Issue33__TestWideSubnet__Bug_or_default_behavior()
Assert.AreEqual(expected, widenetwork, "widesubnet");

}

[TestMethod]
public void Issue162__Test_IPrangeToCIDRnotation()
{
var network1 = "172.64.0.0";
var network2 = "172.71.255.255";

var final = IPNetwork.WideSubnet(network1, network2);
var result = final.ToString();

string expected = "172.64.0.0/13";
Assert.AreEqual(expected, result, "Supernet");
}

[TestMethod]
public void TestSupernet1()
{
Expand Down

0 comments on commit 218723e

Please sign in to comment.