public void GetUlongRepresentation_FromUint( )
        {
            var ipAddress = new SUTest(uint.MinValue);

            Assert.AreEqual(uint.MinValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(uint.MaxValue);
            Assert.AreEqual(uint.MaxValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(4286595104u);
            Assert.AreEqual(4286595104u, ipAddress.GetUlongRepresentation( ));
        }
        public void GetUlongRepresentation_FromByteArray( )
        {
            var ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 });

            Assert.AreEqual(uint.MinValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 255, 255, 255 });
            Assert.AreEqual(uint.MaxValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 64, 32 });
            Assert.AreEqual(4286595104u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 0, 128, 64, 32 });
            Assert.AreEqual(8405024u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 0, 64, 32 });
            Assert.AreEqual(4278206496u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 0, 32 });
            Assert.AreEqual(4286578720u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 64, 0 });
            Assert.AreEqual(4286595072u, ipAddress.GetUlongRepresentation( ));
        }
        public void GetUlongRepresentation_FromUint( )
        {
            var ipAddress = new SUTest(uint.MinValue);
            Assert.AreEqual(uint.MinValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(uint.MaxValue);
            Assert.AreEqual(uint.MaxValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(4286595104u);
            Assert.AreEqual(4286595104u, ipAddress.GetUlongRepresentation( ));
        }
        public void GetUlongRepresentation_FromByteArray( )
        {
            var ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 });
            Assert.AreEqual(uint.MinValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 255, 255, 255 });
            Assert.AreEqual(uint.MaxValue, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 64, 32 });
            Assert.AreEqual(4286595104u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 0, 128, 64, 32 });
            Assert.AreEqual(8405024u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 0, 64, 32 });
            Assert.AreEqual(4278206496u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 0, 32 });
            Assert.AreEqual(4286578720u, ipAddress.GetUlongRepresentation( ));

            ipAddress = new SUTest(new byte[] { 0, 0, 0, 0, 255, 128, 64, 0 });
            Assert.AreEqual(4286595072u, ipAddress.GetUlongRepresentation( ));
        }