public void GetHostIdentifierEx() { var ip = new IPAddress(Ba(10, 20, 30, 40, 10, 20, 30, 40, 10, 20, 30, 40, 10, 20, 30, 40)); var m = new NetMask(Ba(255, 255, 255, 0)); IPAddress id = ip.GetHostIdentifier(m); }
public void GetHostIdentifier() { var ip = new IPAddress(Ba(10, 20, 30, 40)); var m = new NetMask(Ba(255, 255, 255, 0)); IPAddress expectedId = new IPAddress(Ba(0, 0, 0, 40)); IPAddress id = ip.GetHostIdentifier(m); Assert.AreEqual(expectedId, id); // TODO: Add more tests! }