Beispiel #1
0
        public void GetErrorMessage_MaxValue()
        {
            String expected = Validation.For("MaxValue", context.ModelMetadata.PropertyName, 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }
        public void GetErrorMessage_MaxValue()
        {
            String expected = String.Format(Validations.MaxValue, "MaxValue", 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }