public void GetConstantValue_NotConstant_ThrowsInvalidOperationException(Type type, string name)
{
PropertyInfo propertyInfo = GetProperty(type, name);
Assert.Throws<InvalidOperationException>(() => propertyInfo.GetConstantValue());
Assert.Throws<InvalidOperationException>(() => propertyInfo.GetRawConstantValue());
}