public void AddValidation_Digits() { adapter.AddValidation(context); Assert.Single(attributes); Assert.Equal(Validation.For("Digits", context.ModelMetadata.PropertyName), attributes["data-val-digits"]); }
public void AddValidation_Digits() { adapter.AddValidation(context); Assert.Equal(2, attributes.Count); Assert.Equal("true", attributes["data-val"]); Assert.Equal(String.Format(Validations.Digits, "Digits"), attributes["data-val-digits"]); }