public void TestGetSubnetMask() { var ip = Addressing.GetLocalIP(); var mask = Addressing.GetSubnetMask(ip); var amountHosts = Addressing.GetAmountOfHosts(mask); var maskNum = Addressing.ScanNetwork(ip, mask); }
public void TestGetAmountHosts() { var amount = Addressing.GetAmountOfHosts(IPAddress.Parse("255.255.255.0")); Assert.AreEqual(amount, 255); }