コード例 #1
0
        public static void ToIpLongFromString(long expected, string ip)
        {
            // Arrange

            // Act
            var result = IpNumberHelper.ToIpLong(IpNumberHelper.ToIpNumber(ip));

            // Assert
            Assert.Equal(expected, result);
        }
コード例 #2
0
        public static void ToIpLongFromInt(long expected, int ip)
        {
            // Arrange

            // Act
            var result = IpNumberHelper.ToIpLong(ip);

            // Assert
            Assert.Equal(expected, result);
        }