public void ParameteredConstructor_StringResource_ExpectedValues()
        {
            // Call
            var attribute = new ResourcesDescriptionAttribute(typeof(Resources), "SomeStringResource");

            // Assert
            Assert.AreEqual(Resources.SomeStringResource, attribute.Description);
        }
Example #2
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ResourcesDescriptionAttribute.GetDescription((Enum)value));
 }