CanValidate() 공개 메소드

public CanValidate ( Type type ) : bool
type System.Type
리턴 bool
예제 #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)));
		}