public void CanValidate () { StringValidator v = new StringValidator (5); Assert.IsTrue (v.CanValidate (typeof (string))); Assert.IsFalse (v.CanValidate (typeof (int))); Assert.IsFalse (v.CanValidate (typeof (object))); }