MSTestExtensions/CombinatorialTestMethodAttribute.cs
/// <summary>
/// Creates a name for the test as run using the given arguments.
/// </summary>
/// <param name="method">The test method.</param>
/// <param name="arguments">The argument values.</param>
/// <returns>A name for the test as run with the given arguments.</returns>
Creates a name for the test as run using the given arguments.
Creates a name for the test as run using the given arguments .
private static string GetTestDisplayName(ITestMethod method, object[] arguments)
        {
            StringBuilder name = new StringBuilder(method.TestMethodName);
            name.Append('(');
            bool first = true;
            foreach (var value in arguments)
            {
                if (!first)
                {
                    name.Append(", ");
                }
                name.Append(GetValueString(value));
                first = false;
            }
            name.Append(')');
            return name.ToString();
        }
private static string GetTestDisplayName ( ITestMethod method , object [ ] arguments ) { StringBuilder name = new StringBuilder ( method . TestMethodName ) ; name . Append ( ' ' ) ; bool first = true ; foreach ( var value in arguments ) { if ( ! first ) { name . Append ( " " ) ; } name . Append ( GetValueString ( value ) ) ; first = false ; } name . Append ( ' ' ) ; return name . ToString ( ) ; }
Creates a name for the test as run using the given arguments.
Creates a name for the test as run using the given arguments .
A name for the test as run with the given arguments.
A name for the test as run with the given arguments .
method
ITestMethod
The test method.
The test method .
arguments
object[]
The argument values.
The argument values .