コード例 #1
0
        public void GetErrorMessage_MinValue()
        {
            String expected = Validation.For("MinValue", context.ModelMetadata.PropertyName, 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }
コード例 #2
0
        public void GetErrorMessage_MinValue()
        {
            String expected = String.Format(Validations.MinValue, "MinValue", 128);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }