Exemplo n.º 1
0
        public void TestIPAddressCountInOneNinerTwo()
        {
            _ipAddressGenerator.IPAddressSeries = Data.IPAddressSeries.OneNinerTwo;

            int count = 0;

            foreach (var ipAddress in _ipAddressGenerator.GetIPAddresses())
            {
                count++;
            }

            Assert.AreEqual(65536, count);
        }
Exemplo n.º 2
0
        public void TestNoIPAddressSeriesSet()
        {
            IPAddressGenerator ipAddressGenerator = new IPAddressGenerator();

            foreach (var x in ipAddressGenerator.GetIPAddresses())
            {
            }
        }