示例#1
0
            public string GetInfo([NotNull] IList <GroupBy> groupBys,
                                  bool trimSeparator = false)
            {
                var sb = new StringBuilder();

                for (var index = 0; index < Values.Count; index++)
                {
                    GroupBy groupBy = groupBys[index];

                    if (trimSeparator && sb.Length > 0)
                    {
                        // append separator only if needed
                        sb.Append(";");
                    }

                    sb.AppendFormat("{0}={1}",
                                    groupBy.GetFieldNamesString(),
                                    Values[index]);

                    if (!trimSeparator)
                    {
                        // always append separator
                        // (for compatibility with old issue descriptions in QaGroupConnected;
                        // always trim after switching to new exception mechanism)
                        sb.Append(";");
                    }
                }

                return(sb.ToString());
            }