FileExtensionsAttributeAdapterTest.cs (10)
23var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.PhotoFileName));
30var expectedErrorMessage = string.Format(CultureInfo.CurrentCulture, attribute.ErrorMessage, nameof(Profile.PhotoFileName), formattedExtensions);
74var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.PhotoFileName));
81var expectedErrorMessage = string.Format(CultureInfo.CurrentCulture, attribute.ErrorMessage, nameof(Profile.PhotoFileName), formattedExtensions);
104var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.PhotoFileName));
111var expectedErrorMessage = $"{nameof(Profile.PhotoFileName)} expects only the following extensions: {formattedExtensions}";
138var metadata = provider.GetMetadataForProperty(typeof(Profile), "PhotoFileName");