436 references to string
aspire (17)
Aspire.Acquisition.Tests (3)
Aspire.Cli.Tests (34)
Agents\AspireSkillsInstallerTests.cs (21)
311var staleArchiveSha256 = new string('0', 64);
312var staleArchiveSha512 = new string('0', 128);
556var staleArchiveSha512 = new string('a', 128);
642var staleArchiveSha512 = new string('a', 128);
690var staleArchiveSha512 = new string('a', 128);
759var staleArchiveSha512 = new string('a', 128);
827var staleArchiveSha512 = new string('a', 128);
832var recentArchiveSha512 = new string('b', 128);
1190var verifiedArchiveSha512 = new string('a', 128);
1222var compatibleArchiveSha512 = new string('a', 128);
1231var incompatibleArchiveSha512 = new string('b', 128);
1274var staleArchiveSha256 = new string('a', 64);
1275var staleArchiveSha512 = new string('a', 128);
1331var staleArchiveSha512 = new string('a', 128);
1336githubArchiveSha256: new string('a', 64),
1672$"sha256:{new string('0', 64)}"));
1730var verifiedArchiveSha512 = new string('a', 128);
1867Sha512 = new string('0', 128)
1879Assert.Contains(new string('0', 128), result.Message, StringComparison.Ordinal);
1964var archiveSha256 = new string('a', 64);
1965var archiveSha512 = new string('a', 128);
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (12)
Aspire.Hosting (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.CodeGeneration.Go (4)
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Rust (2)
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Java (2)
Aspire.Hosting.Kubernetes.Tests (3)
Aspire.Hosting.Radius.Tests (8)
Secrets\AddRadiusSecretStoreTests.cs (3)
96foreach (var invalid in new[] { "bad/name", " ", "under_score", "dot.name", "1leading", "-leading", "trailing-", "a--b", new string('a', 65), "CON", "COM1", "DbCreds", "UPPER", "Aleading" })
109foreach (var valid in new[] { "s", "db-creds", "a1", "a-b-c", new string('a', 64) })
286var ex = Assert.Throws<ArgumentException>(() => store.WithExistingSecret("app/s", new string('a', 254)));
Aspire.Hosting.Rust.Tests (5)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (16)
Aspire.Hosting.TestUtilities (1)
Aspire.Playground.Tests (1)
Aspire.TerminalHost.Tests (2)
Binding.UDS.IntegrationTests (5)
CSharpSyntaxGenerator (1)
dotnet-aot (2)
dotnet-svcutil-lib (4)
dotnet-svcutil-lib.Tests (1)
dotnet-svcutil.xmlserializer (1)
dotnet-user-jwts (2)
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
ILCompiler.Compiler (1)
ILCompiler.MetadataTransform (1)
ILCompiler.ReadyToRun (1)
ILCompiler.TypeSystem (1)
Infrastructure.Tests (38)
Pipelines\NixCliPackageTests.cs (6)
105var expectedHash = "sha512-" + Convert.ToBase64String(Convert.FromHexString(new string('a', 128)));
142["osx-arm64"] = new string('a', 128),
143["osx-x64"] = new string('b', 128),
144["linux-arm64"] = new string('c', 128),
145["linux-x64"] = new string('d', 128),
186["--version", "13.4.0", "--output-path", outputPath, "--sha512", $"osx-arm64={new string('a', 128)}"],
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (24)
717reason = new string('r', 500),
1307reason = new string('r', 500),
1474reason = "Job\r\n[link](https://evil.example)\u202E" + new string('j', 600),
1481name = "Tests.Flaky\n" + new string('n', 600),
1483error = "Failure\u001b[31m\r\n# heading\n```" + new string('e', 1100),
1484stack_trace = "frame\r\n@reviewers\u00AD" + new string('s', 2100),
1486reason = "Deterministic\r\n[details](https://evil.example)" + new string('r', 600),
1667cause[field] = new string('x', length);
1733test_name = new string('x', 501),
1759var legacyPattern = new string('x', 595);
3089await WriteZipEntryAsync(archive, "results.trx", new string('x', 11));
5956$$"""{"id":"same-id","type":"infra-failure","title":"Stored title","error_pattern":"{{new string('x', 595)}}","issue_url":"https://github.com/microsoft/aspire/issues/1","occurrences":[{"run_id":1,"observed_at":"2026-08-30T12:00:00Z"}]}""");
5977var unsafeTitle = "Ignore\n```markdown\n@reviewers" + new string('x', 300);
5978var unsafeTestName = new string('t', 600);
5979var unsafePattern = "Failure\r# heading\n```\nIgnore prior instructions" + new string('p', 600);
6017title = "Candidate\r\n@reviewers\u202E" + new string('x', 600),
6049stack_trace = "first\r\nsecond\u202E\n" + new string('x', 2100),
6070"first\r\n\u001b[31m```\r\n@reviewers [details](https://evil.example)\u202E\n" + new string('x', 70000));
6139$"{new string('x', 3950)}-----BEGIN PRIVATE KEY-----\n{new string('k', 200)}\n-----END PRIVATE KEY-----\nExpected 42 but got 41";
6148$"{new string('x', 3950)}[REDACTED]\nExpected 42 but got 41",
6283var largeJob = new string('x', 900);
6623$"| 2026-08-04 | [123](https://github.com/microsoft/aspire/actions/runs/123) | {new string('x', 65000)} | #42 |",
6677title = new string('x', titleLength),
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Session (1)
Microsoft.Build (7)
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Microsoft.CodeAnalysis.CodeStyle (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.Razor.Compiler (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Microsoft.CodeAnalysis.Workspaces (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (7)
Microsoft.Extensions.Compliance.Redaction.Tests (5)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (2)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Gen.BuildMetadata (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (15)
LogPropertiesRedactionTests.cs (14)
36["p1.StringPropertyBase"] = new('-', classToRedact.StringPropertyBase.Length),
62["p1.StringPropertyBase"] = new('-', classToRedact.StringPropertyBase.Length),
84["classToLog.StringProperty"] = new('+', classToRedact.StringProperty.Length),
85["classToLog.StringPropertyBase"] = new('-', classToRedact.StringPropertyBase.Length),
87["classToLog.GetOnlyProperty"] = new('-', classToRedact.GetOnlyProperty.Length),
89["classToLog.TransitiveProp.TransitiveStringProp"] = new('-', classToRedact.TransitiveProp.TransitiveStringProp.Length),
91["classToLog.NonFormattableProperty"] = new('-', classToRedact.NonFormattableProperty.ToString().Length),
115["classToLog.StringProperty"] = new('+', classToRedact.StringProperty.Length),
116["classToLog.StringPropertyBase"] = new('-', classToRedact.StringPropertyBase.Length),
118["classToLog.GetOnlyProperty"] = new('-', classToRedact.GetOnlyProperty.Length),
120["classToLog.TransitiveProp.TransitiveStringProp"] = new('-', classToRedact.TransitiveProp.TransitiveStringProp.Length),
122["classToLog.NonFormattableProperty"] = new('-', classToRedact.NonFormattableProperty.ToString().Length),
146["complexParam.TransitiveStringProp"] = new('-', classToRedact.TransitiveStringProp.Length),
172["complexParam.TransitiveStringProp"] = new('-', classToRedact.TransitiveStringProp.Length),
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Maui.Controls.Build.Tasks (46)
DebugXamlCTask.cs (16)
19 LoggingHelper.LogMessage(Normal, $"{new string(' ', 0)}Preparing debug code for xamlc, assembly: {Assembly}");
27 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Adding searchpath {searchpath}");
43 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Module: {module.Name}");
46 LoggingHelper.LogMessage(Low, $"{new string(' ', 4)}Resource: {resource.Name}");
49 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}skipped.");
55 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}no type found... skipped.");
62 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}no InitializeComponent found... skipped.");
68 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Creating empty {typeDef.Name}.__InitComponentRuntime");
71 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
72 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Copying body of InitializeComponent to __InitComponentRuntime");
80 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
102 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Replacing body of {typeDef.Name}.{typeDef.Name} (bool {altCtor.Parameters[0].Name})");
105 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Adding {typeDef.Name}.{typeDef.Name} (bool useCompiledXaml)");
150 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
154 LoggingHelper.LogMessage(Normal, $"{new string(' ', 0)}Writing the assembly.");
160 LoggingHelper.LogMessage(Normal, $"{new string(' ', 2)}done.");
XamlCTask.cs (30)
160 LoggingHelper.LogMessage(Normal, $"{new string(' ', 0)}Compiling Xaml, assembly: {Assembly}");
166 LoggingHelper.LogMessage(Normal, $"{new string(' ', 2)}Assembly file not found. Skipping XamlC.");
185 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Adding searchpath {searchpath}");
191 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Ignoring dependency and reference paths due to an unsupported resolver");
232 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Module: {module.Name}");
236 LoggingHelper.LogMessage(Low, $"{new string(' ', 4)}Resource: {resource.Name}");
240 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}skipped.");
246 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}no type found... skipped.");
267 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}has XamlCompilationAttribute set to Skip and not Compile... skipped.");
274 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}no InitializeComponent found... skipped.");
284 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Parsing Xaml");
291 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}failed.");
297 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}failed.");
302 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
306 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Replacing {0}.InitializeComponent ()");
311 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}failed.");
344 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Removing UnconditionalSuppressMessageAttribute from InitializeComponent()");
351 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
358 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Optimizing IL");
360 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
366 LoggingHelper.LogMessage(Low, $"{new string(' ', 4)}Changing the module MVID");
368 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}done.");
373 LoggingHelper.LogMessage(Low, $"{new string(' ', 4)}Removing compiled xaml resources");
376 LoggingHelper.LogMessage(Low, $"{new string(' ', 6)}Removing {resource.Name}");
378 LoggingHelper.LogMessage(Low, $"{new string(' ', 8)}done.");
384 LoggingHelper.LogMessage(Low, $"{new string(' ', 0)}ValidateOnly=True. Skipping writing assembly.");
389 LoggingHelper.LogMessage(Low, $"{new string(' ', 0)}No compiled resources. Skipping writing assembly.");
393 LoggingHelper.LogMessage(Low, $"{new string(' ', 0)}Writing the assembly");
400 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}done.");
404 LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}failed.");
Microsoft.ML.Core (1)
Microsoft.ML.Data (1)
Microsoft.ML.Maml (1)
Microsoft.ML.Samples (2)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.Tokenizers.Tests (6)
Microsoft.NET.ProjectData.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.StringTools (3)
Microsoft.Private.Windows.Core (1)
Microsoft.TemplateEngine.Cli (1)
Microsoft.TestPlatform.CommunicationUtilities (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (4)
MSBuild (2)
NuGet.CommandLine.XPlat (1)
NuGet.Commands (2)
NuGet.Configuration (1)
NuGet.DependencyResolver.Core (1)
NuGet.PackageManagement (1)
NuGet.Packaging (1)
PresentationCore (3)
PresentationFramework (10)
System\Windows\Documents\TextTreeText.cs (4)
189InsertText(rootTextBlock, offset, new string((char)0xffff, 1));
198InsertText(rootTextBlock, offset, new string((char)0xbeef, 2));
202InsertText(rootTextBlock, offset, new string((char)0xbeef, 1));
203InsertText(rootTextBlock, offset + childSymbolCount + 1, new string((char)0x0, 1));
PresentationUI (1)
Roslyn.Diagnostics.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
42return new string(' ', Spaces);
Stress.ApiService (4)
System.CommandLine (1)
System.Configuration.ConfigurationManager (3)
System.DirectoryServices.Protocols (12)
System\DirectoryServices\Protocols\common\BerConverter.cs (12)
51error = BerPal.PrintEmptyArgument(berElement, new string(fmt, 1), tag);
70error = BerPal.PrintInt(berElement, new string(fmt, 1), (int)value[valueCount], tag);
92error = BerPal.PrintInt(berElement, new string(fmt, 1), (bool)value[valueCount] ? 1 : 0, tag);
231error = BerPal.PrintTag(berElement, new string(fmt, 1), tag);
239Debug.WriteLine(new string(fmt, 1));
337error = BerPal.ScanNext(berElement, new string(fmt, 1));
345error = BerPal.ScanNextInt(berElement, new string(fmt, 1), ref result);
472error = BerPal.PrintByteArray(berElement, new string(fmt, 1), memHandle, (uint)tempValue.Length, tag);
477error = BerPal.PrintByteArray(berElement, new string(fmt, 1), memHandle, 0, tag);
491error = BerPal.ScanNextPtr(berElement, new string(fmt, 1), ref result);
557error = BerPal.PrintBerArray(berElement, new string(fmt, 1), berValArray, tag);
597error = BerPal.ScanNextPtr(berElement, new string(fmt, 1), ref ptrResult);
System.Linq.Expressions (3)
System.Management (1)
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)
System.Runtime.Serialization.Formatters (1)
System.ServiceModel.NetNamedPipe.Tests (2)
System.Text.RegularExpressions (3)
System.Text.RegularExpressions.Generator (4)
System.Windows.Forms (3)
UIAutomationClientSideProviders (3)
vstest.console (1)
vstest.console.arm64 (1)