namespace Spectre.Console.Tests.Data;

public sealed class CatAgilityConverter : TypeConverter
{
    public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
    {
        if (value is string stringValue)
        {
            return stringValue.Length;
        }

        return base.ConvertFrom(context, culture, value);
    }
}
