public void ConvertFrom() { RegexConverter rc = new RegexConverter(); object regex = rc.ConvertFrom("[a-z]"); Assert.IsNotNull(regex); Assert.IsTrue(regex is Regex); Assert.IsFalse(((Regex)regex).IsMatch("2")); }
public void ConvertFromNullReference() { RegexConverter rc = new RegexConverter(); rc.ConvertFrom(null); }
public void ConvertFromNonSupportedOptionBails() { RegexConverter rc = new RegexConverter(); rc.ConvertFrom(12); }