public void InvalidNetMaskHighThan32()
        {
            //Arrange
            const Int32 WRONG_NET_MASK = 33;

            //Act
            var result = NetworkHelpers.GetIpv4SubnetFromNetMask(WRONG_NET_MASK);

            //Assert
            Assert.Fail();
        }
        public void NormalUse(Int32 netMask)
        {
            //Act
            var result = NetworkHelpers.GetIpv4SubnetFromNetMask(netMask);

            //Assert
            switch (netMask)
            {
            case 8: Assert.AreEqual("255.0.0.0", result.ToString()); break;

            case 16: Assert.AreEqual("255.255.0.0", result.ToString()); break;

            case 23: Assert.AreEqual("255.255.254.0", result.ToString()); break;

            case 24: Assert.AreEqual("255.255.255.0", result.ToString()); break;

            case 32: Assert.AreEqual("255.255.255.255", result.ToString()); break;

            default: Assert.Fail(); break;
            }
        }