public void GetErrorMessage_GreaterThan()
        {
            String expected = String.Format(Validations.GreaterThan, "GreaterThan", 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void GetErrorMessage_GreaterThan()
        {
            String expected = Validation.For("GreaterThan", context.ModelMetadata.PropertyName, 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }