Exemple #1
0
        public void GetErrorMessage_FileSize()
        {
            String expected = Validation.For("FileSize", context.ModelMetadata.PropertyName, 12.25);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }
        public void GetErrorMessage_FileSize()
        {
            String expected = String.Format(Validations.FileSize, "FileSize", 12.25);
            String actual   = adapter.GetErrorMessage(context);

            Assert.Equal(expected, actual);
        }