private void TestAttributeValueFormatter(Type type, string memberName, object expectedValue)
        {
            var(argumentType, argumentValue) = GetAttributeArguments(type, memberName);

            var attributeFormatter = new AttributeValueFormatter();
            var formatValue        = attributeFormatter.Format(argumentType, argumentValue);

            Assert.AreEqual(expectedValue.ToString(), formatValue);
        }
Esempio n. 2
0
 public virtual string MakeAttributesValueString(object argumentValue, TypeReference argumentType)
 {
     return(valueFormatter.Format(argumentType, argumentValue));
 }