38 references to PadRight
aspire (3)
Commands\GroupedHelpWriter.cs (1)
224var paddedLabel = label.PadRight(columnWidth);
Interaction\BannerService.cs (1)
197var partialLine = line[..Math.Min(visibleCols, line.Length)].PadRight(line.Length);
Utils\ConsoleActivityLogger.cs (1)
469var timelineLabelPrefix = $" {new string(' ', durationWidth)} {timelineLabel.PadRight(nameWidth)} ";
Aspire.Cli.Tests (2)
Agents\AgentTelemetryHookTests.cs (1)
241var padded = payload.PadRight(AgentTelemetryHook.DefaultMaxPayloadCharacters + 1);
Configuration\ConfigSourceServiceGitTests.cs (1)
520await CreateRepositoryAsync(workspace, AspireConfigFile.FileName, "{}".PadRight(bytes));
Aspire.Hosting.Tests (3)
Terminals\Hex1bAspireTerminalTests.cs (3)
343var expected = string.Join('\n', lines.Select(line => line.PadRight(80)).Append("ready")); 375Assert.Equal(string.Join('\n', main.Chunk(20).Select(chunk => new string(chunk).PadRight(20)).Append("ready")), 378Assert.Equal(main.PadRight(80) + "\nready", terminal.GetScreenText().TrimEnd());
Aspire.TerminalHost.Tests (1)
TerminalHostAppTests.cs (1)
637var expected = string.Join('\n', lines.Select(line => line.PadRight(80)).Append("ready"));
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
140await response.WriteAsync(error.PadRight(513));
Microsoft.Build (1)
Evaluation\Expander\WellKnownFunctions.cs (1)
317returnVal = text.PadRight(totalWidth);
Microsoft.Data.Analysis (2)
DataFrame.cs (2)
1020sb.Append(string.Format(Columns[i].Name.PadRight(padding))); 1028sb.Append((obj ?? "null").ToString().PadRight(padding));
Microsoft.ML.Data (3)
Evaluators\EvaluatorUtils.cs (3)
1547sb.Append(string.Format("{0}{1}: ", weighted ? "Weighted " : "", metricNames[i]).PadRight(20)); 1578sb.Append($"{metrics[i].Name}: ".PadRight(20)); 1580weightedSb?.Append($"Weighted {weightedMetrics[i].Name}: ".PadRight(20));
Microsoft.ML.FastTree (4)
Utils\Timer.cs (4)
157string padded = "Name".PadRight(MaxEventNameLen); 168padded = n.ToString().PadRight(MaxEventNameLen); 173padded = "Name".PadRight(MaxEventNameLen); 179padded = n.ToString().PadRight(MaxEventNameLen);
Microsoft.TemplateEngine.Cli (3)
CliTemplateParameter.cs (1)
477displayValue.Append(Indent + choiceInfo.Key.PadRight(longestChoiceLength + Indent.Length));
Commands\create\InvalidTemplateOptionResult.cs (1)
160text.Indent(1).Append(choiceInfo.Key.PadRight(longestChoiceLength));
TemplateInvoker.cs (1)
286Reporter.Error.WriteLine(($" {GetChangeString(change.ChangeKind)}".PadRight(padLen) + AdjustReportedPath(change.TargetRelativePath)).Bold().Red());
NuGet.CommandLine.XPlat (2)
Commands\PackageSearch\Table.cs (1)
158logger.LogInline("".PadRight(_columns[column].Width - i), color);
Utility\TableParser.cs (1)
132dataCell.Value = " " + dataCell.Value?.PadRight(maxColumnsWidth[colIndex]) ?? string.Empty;
NuGet.Commands (5)
ClientCertificatesCommand\ListClientCertRunner.cs (2)
38var defaultIndentation = string.Empty.PadRight(PaddingWidth); 45var indexIndentation = $" {i + 1}.".PadRight(PaddingWidth);
TrustedSignersCommand\TrustedSignersCommandRunner.cs (3)
222var index = $" {i + 1}.".PadRight(6); 223var defaultIndentation = string.Empty.PadRight(6); 241var extraIndentation = string.Empty.PadRight(2);
vstest.console (4)
Internal\ConsoleLogger.cs (4)
763TestOutcome.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator), 764TestOutcome.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator), 765TestOutcome.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator), 766_ => CommandLineResources.None.PadRight(LongestResultIndicator),
vstest.console.arm64 (4)
parent\vstest.console\Internal\ConsoleLogger.cs (4)
763TestOutcome.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator), 764TestOutcome.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator), 765TestOutcome.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator), 766_ => CommandLineResources.None.PadRight(LongestResultIndicator),