Exemplo n.º 1
0
        public void IPMaskCtor_CreateInstanceWithMask_InstanceCorrectInitialized()
        {
            string expected = "10.20.30.x";
            IPMask mask = new IPMask(expected);
            string actual = mask.Mask;

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Combine_MaskWithPartOfIPAddress_ReturnsCorrectIPAddress()
        {
            string expected = "10.20.30.40";
            IPMask mask = new IPMask("10.20.30.x");
            string actual = mask.Combine("40");

            Assert.AreEqual(expected, actual);
        }