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

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

            Assert.Equal(expected, actual);
        }