CanValidate() public method

public CanValidate ( Type type ) : bool
type System.Type
return bool
Ejemplo n.º 1
0
		public void CanValidate ()
		{
			DefaultValidator v = new DefaultValidator ();

			Assert.IsTrue (v.CanValidate (typeof (string)));
			Assert.IsTrue (v.CanValidate (typeof (int)));
			Assert.IsTrue (v.CanValidate (typeof (object)));
		}