public static string GetTestSignature([NotNull] ITestImplementationInfo testInfo)
        {
            Assert.ArgumentNotNull(testInfo, nameof(testInfo));

            var sb = new StringBuilder();

            foreach (TestParameter testParameter in testInfo.Parameters)
            {
                if (sb.Length > 1)
                {
                    sb.Append(", ");
                }

                if (!testParameter.IsConstructorParameter)
                {
                    sb.Append("[");
                }

                sb.Append(GetParameterTypeString(testParameter));
                sb.AppendFormat(" {0}", testParameter.Name);
                if (!testParameter.IsConstructorParameter)
                {
                    sb.Append("]");
                }
            }

            return(sb.ToString());
        }
        private static string GetDescription([NotNull] QualityCondition condition)
        {
            string description;

            if (string.IsNullOrEmpty(condition.Description))
            {
                TestDescriptor testDescriptor = condition.TestDescriptor;

                ITestImplementationInfo testImplementationInfo =
                    testDescriptor == null
                                                ? null
                                                : TestDescriptorUtils.GetTestImplementationInfo(testDescriptor);

                description = testImplementationInfo == null
                                                      ? string.Empty
                                                      : testImplementationInfo.GetTestDescription();
            }
            else
            {
                description = condition.Description;
            }

            if (description == null)
            {
                return(string.Empty);
            }

            description = description.Replace("\r", string.Empty);
            description = description.Replace("\n", Environment.NewLine);

            return(description);
        }