示例#1
0
        public void MatchIPs()
        {
            var uris = new[] {
                "2001:db8::7",
                "192.0.2.16",
            };

            foreach (var uri in uris)
            {
                var bytes = Encoding.UTF8.GetBytes(uri);

                Assert.True(IP.Debugging(recurse: true).Execute(bytes, out var match, out var status));
            }
        }