public void ParameteredConstructor_StringResource_ExpectedValues() { // Call var attribute = new ResourcesDescriptionAttribute(typeof(Resources), "SomeStringResource"); // Assert Assert.AreEqual(Resources.SomeStringResource, attribute.Description); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return(ResourcesDescriptionAttribute.GetDescription((Enum)value)); }