public static void GetIpRegex_Should_Return_Failed_Match() { // arrange var ips = new List <string> { GetRandomIpAddress(), "256.0.10.23" }; // act var result = RegexUtility.IsMatch(ips, RegexUtility.GetIpRegex()); // assert Assert.False(result); }
public static void GetIpRegex_Should_Return_Success_Match() { // arrange var ips = new List <string> { GetRandomIpAddress(), GetRandomIpAddress() }; // act var result = RegexUtility.IsMatch(ips, RegexUtility.GetIpRegex()); // assert Assert.True(result); }