MSTestExtensions/CombinatorialTestMethodAttribute.cs
/// <summary>
/// Converts the given value to a string.
/// </summary>
/// <param name="value">The value to convert.</param>
/// <returns>The string form of the given value.</returns>
Converts the given value to a string.
Converts the given value to a string .
private static string GetValueString(object value)
        {
            switch (value)
            {
                case null:
                    return "null";
                case string str:
                    return "\"" + str + "\"";
                case object enumVal
                when enumVal.GetType().GetTypeInfo().IsEnum:
                    return enumVal.GetType().Name + "." + value;
                default:
                    return value.ToString();
            }
        }
private static string GetValueString ( object value ) { switch ( value ) { case null : return " " ; case string str : return " \" " + str + " \" " ; case object enumVal when enumVal . GetType ( ) . GetTypeInfo ( ) . IsEnum : return enumVal . GetType ( ) . Name + " " + value ; default : return value . ToString ( ) ; } }
Converts the given value to a string.
Converts the given value to a string .
The string form of the given value.
The string form of the given value .
value
object
The value to convert.
The value to convert .