public void Should_append_Required_validation_string_for_input_that_maps_to_a_property_that_is_not_null()
 {
     _propertyMetaData = PropertyMetaDataMocker.CreateStub("Field", true, 0, 10, null, null, typeof(string));
     _cssClass = "testClass";
     var validatableTest = new ValidatableTest().WithValidationFrom(_propertyMetaData);
     var expectedValiationString = String.Format("required {0}", _cssClass);
     validatableTest.Validation(_cssClass).ShouldBeEqualTo(expectedValiationString);
 }
 public void Should_append_Digits_validation_string_for_int_input()
 {
     _propertyMetaData = PropertyMetaDataMocker.CreateStub("Field", true, 0, 10, 0, 100, typeof(int));
     _cssClass = "testClass";
     var validatableTest = new ValidatableTest().WithValidationFrom(_propertyMetaData);
     var expectedValiationString = String.Format("required {0} {1}", _cssClass, ValidatableWebControlBase.JQueryFieldValidationType.Digits.Text);
     validatableTest.Validation(_cssClass).ShouldBeEqualTo(expectedValiationString);
 }