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); }