public void GetErrorMessage_Email() { String expected = Validation.For("Email", context.ModelMetadata.PropertyName); String actual = adapter.GetErrorMessage(context); Assert.Equal(expected, actual); }
public void GetErrorMessage_Email() { String expected = String.Format(Validations.Email, "EmailAddress"); String actual = adapter.GetErrorMessage(context); Assert.Equal(expected, actual); }