示例#1
0
        public static void GetUrlOrIpRegex_Should_Return_Failed_Match()
        {
            // arrange
            var ipsOrUrl = new List <string> {
                GetRandomIpAddress(), "http//www.google.com"
            };

            // act
            var result = RegexUtility.IsMatch(ipsOrUrl, RegexUtility.GetUrlOrIpRegex());

            // assert
            Assert.False(result);
        }