public override bool CanValidate(Type type) { return (type == typeof(string)); }
public void CanValidate () { RegexStringValidator v = new RegexStringValidator ("[0-9]+"); Assert.IsTrue (v.CanValidate (typeof (string))); Assert.IsFalse (v.CanValidate (typeof (int))); Assert.IsFalse (v.CanValidate (typeof (object))); }