예제 #1
0
        public void TestIPAddressCountInOneNinerTwo()
        {
            _ipAddressGenerator.IPAddressSeries = Data.IPAddressSeries.OneNinerTwo;

            int count = 0;

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

            Assert.AreEqual(65536, count);
        }
예제 #2
0
        public void TestNoIPAddressSeriesSet()
        {
            IPAddressGenerator ipAddressGenerator = new IPAddressGenerator();

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