883 references to string
AnalyzerRunner (1)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (5)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (9)
Aspire.Playground.Tests (1)
BasicWebSite (1)
Binding.UDS.IntegrationTests (5)
BoundTreeGenerator (1)
BuildValidator (1)
CodeGenerator (1)
CSharpSyntaxGenerator (1)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (4)
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (2)
ExceptionHandlerSample (1)
FormatterWebSite (2)
GenerateDocumentationAndConfigFiles (1)
http2cat (2)
IdeBenchmarks (1)
IIS.FunctionalTests (12)
IIS.LongTests (6)
IIS.NewHandler.FunctionalTests (6)
IIS.NewShim.FunctionalTests (6)
IIS.Tests (2)
IISExpress.FunctionalTests (16)
illink (1)
ILLink.RoslynAnalyzer (1)
InMemory.FunctionalTests (71)
ChunkedRequestTests.cs (6)
282Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString());
330string.Concat("X-Trailer-Header: ", new string('a', i)),
413Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString());
461string.Concat("X-Trailer-Header: ", new string('a', i)),
596Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString());
635string.Concat("X-Trailer-Header: ", new string('a', i)),
ChunkedResponseTests.cs (18)
158var expectedString = new string('a', 10000);
179new string('a', 3986),
181new string('a', 4089),
183new string('a', 1925),
198var expectedString = new string('a', length);
224new string('a', length),
240var expectedString = new string('a', partialLength);
265new string('a', partialLength),
670var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', memory.Length));
699new string('a', length.Value),
726var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', memory.Length));
755new string('a', length.Value),
782var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', length));
812new string('a', length),
1077var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', writeSize));
1096new string('a', writeSize),
1116var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', writeSize));
1135new string('a', writeSize),
Http2\Http2ConnectionTests.cs (5)
2002await context.Response.WriteAsync(new string('!', 65536));
3072new KeyValuePair<string, string>(InternalHeaderNames.Method, new string('A', 8192 / 2)),
3073new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + new string('A', 8192 / 2)),
3906context.Response.Headers["A"] = new string('a', headerValueLength);
3907context.Response.Headers["B"] = new string('b', headerValueLength);
Http2\Http2StreamTests.cs (22)
780new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET" + new string('a', 1024 * 3)),
781new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Hello/How/Are/You/" + new string('a', 1024 * 3)),
783new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost" + new string('a', 1024 * 3) + ":80"),
2400var largeHeader = new string('a', 1024 * 3);
2593var trailerValue = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
2635var trailerValue = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
2728var trailerValue = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
2787var trailerValue = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
2842var value = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
3529context.Response.Headers.ETag = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
3565context.Response.Headers.ETag = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
3566context.Response.Headers.TE = new string('a', 30);
3603context.Response.Headers.ETag = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
3604context.Response.Headers.TE = new string('b', (int)Http2PeerSettings.DefaultMaxFrameSize);
3654context.Response.Headers.ETag = new string('a', 17002);
3712var longHeaderName = new string('a', (int)Http2PeerSettings.DefaultMaxFrameSize);
3752var headerValue = new string('a', frameSize * count); // 1 MB value
3972var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', memory.Length));
4006Assert.Equal(Encoding.ASCII.GetBytes(new string('a', 4102)), dataFrame.PayloadSequence.ToArray());
4025var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new string('a', memory.Length));
4059Assert.Equal(Encoding.ASCII.GetBytes(new string('a', 4102)), dataFrame.PayloadSequence.ToArray());
5924var fisrtPartOfResponse = Encoding.ASCII.GetBytes(new String('a', sizeHint));
Http3\Http3StreamTests.cs (8)
135new KeyValuePair<string, string>("test", new string('a', 1024 * 32 + 1))
534new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET" + new string('a', 1024 * 3)),
535new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Hello/How/Are/You/" + new string('a', 1024 * 3)),
537new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost" + new string('a', 1024 * 3) + ":80"),
2759new KeyValuePair<string, string>(InternalHeaderNames.Method, new string('A', 8192 / 2)),
2760new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + new string('A', 8192 / 2)),
2806context.Response.Headers["BigHeader"] = new string('!', 100);
3090var sendTask = requestStream.SendDataAsync(Encoding.ASCII.GetBytes(new string('a', sendSize)));
InProcessWebSite (7)
Interop.FunctionalTests (13)
IOperationGenerator (1)
LargeResponseApp (1)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Authentication.Test (10)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.HttpLogging.Tests (17)
HttpLoggingMiddlewareTests.cs (17)
31variations.Add(new string('a', 4097));
32variations.Add(new string('b', 10000));
33variations.Add(new string('あ', 10000));
396var input = string.Concat(new string('あ', 5));
433var input = string.Concat(new string('a', 60000), new string('b', 3000));
469var input = string.Concat(new string('a', 60000), new string('b', 3000));
494var input = string.Concat(new string('a', 60000), new string('b', 3000));
527var expected = new string('a', 1000);
562var expected = new string('a', 1000);
600var expected = new string('a', 1000);
638var expected = new string('a', 1000);
677var expected = new string('a', 1000);
1065var input = string.Concat(new string('a', 30000), new string('b', 3000));
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (5)
Microsoft.AspNetCore.Mvc.Core.Test (64)
ContentResultTest.cs (63)
151{ new string('a', DefaultCharacterChunkSize), "text/plain; charset=utf-8" },
152{ new string('a', DefaultCharacterChunkSize - 1), "text/plain; charset=utf-8" },
153{ new string('a', DefaultCharacterChunkSize + 1), "text/plain; charset=utf-8" },
154{ new string('a', DefaultCharacterChunkSize - 2), "text/plain; charset=utf-8" },
155{ new string('a', DefaultCharacterChunkSize + 2), "text/plain; charset=utf-8" },
156{ new string('a', DefaultCharacterChunkSize - 3), "text/plain; charset=utf-8" },
157{ new string('a', DefaultCharacterChunkSize + 3), "text/plain; charset=utf-8" },
158{ new string('a', DefaultCharacterChunkSize * 2), "text/plain; charset=utf-8" },
159{ new string('a', DefaultCharacterChunkSize * 3), "text/plain; charset=utf-8" },
160{ new string('a', (DefaultCharacterChunkSize * 2) - 1), "text/plain; charset=utf-8" },
161{ new string('a', (DefaultCharacterChunkSize * 2) - 2), "text/plain; charset=utf-8" },
162{ new string('a', (DefaultCharacterChunkSize * 2) - 3), "text/plain; charset=utf-8" },
163{ new string('a', (DefaultCharacterChunkSize * 2) + 1), "text/plain; charset=utf-8" },
164{ new string('a', (DefaultCharacterChunkSize * 2) + 2), "text/plain; charset=utf-8" },
165{ new string('a', (DefaultCharacterChunkSize * 2) + 3), "text/plain; charset=utf-8" },
166{ new string('a', (DefaultCharacterChunkSize * 3) - 1), "text/plain; charset=utf-8" },
167{ new string('a', (DefaultCharacterChunkSize * 3) - 2), "text/plain; charset=utf-8" },
168{ new string('a', (DefaultCharacterChunkSize * 3) - 3), "text/plain; charset=utf-8" },
169{ new string('a', (DefaultCharacterChunkSize * 3) + 1), "text/plain; charset=utf-8" },
170{ new string('a', (DefaultCharacterChunkSize * 3) + 2), "text/plain; charset=utf-8" },
171{ new string('a', (DefaultCharacterChunkSize * 3) + 3), "text/plain; charset=utf-8" },
173{ new string('色', DefaultCharacterChunkSize), "text/plain; charset=utf-16" },
174{ new string('色', DefaultCharacterChunkSize - 1), "text/plain; charset=utf-16" },
175{ new string('色', DefaultCharacterChunkSize + 1), "text/plain; charset=utf-16" },
176{ new string('色', DefaultCharacterChunkSize - 2), "text/plain; charset=utf-16" },
177{ new string('色', DefaultCharacterChunkSize + 2), "text/plain; charset=utf-16" },
178{ new string('色', DefaultCharacterChunkSize - 3), "text/plain; charset=utf-16" },
179{ new string('色', DefaultCharacterChunkSize + 3), "text/plain; charset=utf-16" },
180{ new string('色', DefaultCharacterChunkSize * 2), "text/plain; charset=utf-16" },
181{ new string('色', DefaultCharacterChunkSize * 3), "text/plain; charset=utf-16" },
182{ new string('色', (DefaultCharacterChunkSize * 2) - 1), "text/plain; charset=utf-16" },
183{ new string('色', (DefaultCharacterChunkSize * 2) - 2), "text/plain; charset=utf-16" },
184{ new string('色', (DefaultCharacterChunkSize * 2) - 3), "text/plain; charset=utf-16" },
185{ new string('色', (DefaultCharacterChunkSize * 2) + 1), "text/plain; charset=utf-16" },
186{ new string('色', (DefaultCharacterChunkSize * 2) + 2), "text/plain; charset=utf-16" },
187{ new string('色', (DefaultCharacterChunkSize * 2) + 3), "text/plain; charset=utf-16" },
188{ new string('色', (DefaultCharacterChunkSize * 3) - 1), "text/plain; charset=utf-16" },
189{ new string('色', (DefaultCharacterChunkSize * 3) - 2), "text/plain; charset=utf-16" },
190{ new string('色', (DefaultCharacterChunkSize * 3) - 3), "text/plain; charset=utf-16" },
191{ new string('色', (DefaultCharacterChunkSize * 3) + 1), "text/plain; charset=utf-16" },
192{ new string('色', (DefaultCharacterChunkSize * 3) + 2), "text/plain; charset=utf-16" },
193{ new string('色', (DefaultCharacterChunkSize * 3) + 3), "text/plain; charset=utf-16" },
195{ new string('色', DefaultCharacterChunkSize), "text/plain; charset=utf-32" },
196{ new string('色', DefaultCharacterChunkSize - 1), "text/plain; charset=utf-32" },
197{ new string('色', DefaultCharacterChunkSize + 1), "text/plain; charset=utf-32" },
198{ new string('色', DefaultCharacterChunkSize - 2), "text/plain; charset=utf-32" },
199{ new string('色', DefaultCharacterChunkSize + 2), "text/plain; charset=utf-32" },
200{ new string('色', DefaultCharacterChunkSize - 3), "text/plain; charset=utf-32" },
201{ new string('色', DefaultCharacterChunkSize + 3), "text/plain; charset=utf-32" },
202{ new string('色', DefaultCharacterChunkSize * 2), "text/plain; charset=utf-32" },
203{ new string('色', DefaultCharacterChunkSize * 3), "text/plain; charset=utf-32" },
204{ new string('色', (DefaultCharacterChunkSize * 2) - 1), "text/plain; charset=utf-32" },
205{ new string('色', (DefaultCharacterChunkSize * 2) - 2), "text/plain; charset=utf-32" },
206{ new string('色', (DefaultCharacterChunkSize * 2) - 3), "text/plain; charset=utf-32" },
207{ new string('色', (DefaultCharacterChunkSize * 2) + 1), "text/plain; charset=utf-32" },
208{ new string('色', (DefaultCharacterChunkSize * 2) + 2), "text/plain; charset=utf-32" },
209{ new string('色', (DefaultCharacterChunkSize * 2) + 3), "text/plain; charset=utf-32" },
210{ new string('色', (DefaultCharacterChunkSize * 3) - 1), "text/plain; charset=utf-32" },
211{ new string('色', (DefaultCharacterChunkSize * 3) - 2), "text/plain; charset=utf-32" },
212{ new string('色', (DefaultCharacterChunkSize * 3) - 3), "text/plain; charset=utf-32" },
213{ new string('色', (DefaultCharacterChunkSize * 3) + 1), "text/plain; charset=utf-32" },
214{ new string('色', (DefaultCharacterChunkSize * 3) + 2), "text/plain; charset=utf-32" },
215{ new string('色', (DefaultCharacterChunkSize * 3) + 3), "text/plain; charset=utf-32" },
Microsoft.AspNetCore.Mvc.FunctionalTests (10)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
Microsoft.AspNetCore.OutputCaching.Tests (7)
Microsoft.AspNetCore.ResponseCaching.Tests (7)
Microsoft.AspNetCore.ResponseCompression.Tests (12)
ResponseCompressionMiddlewareTest.cs (12)
167return context.Response.WriteAsync(new string('a', 100));
462return context.Response.WriteAsync(new string('a', 100));
525return context.Response.WriteAsync(new string('a', 100));
588return context.Response.WriteAsync(new string('a', 100));
642await context.Response.WriteAsync(new string('a', 100));
688await context.Response.WriteAsync(new string('a', 100));
790await context.Response.WriteAsync(new string('a', 10));
793await context.Response.WriteAsync(new string('a', 90));
1151await context.Response.WriteAsync(new string('a', 100));
1199await context.Response.WriteAsync(new string('a', 10));
1202await context.Response.WriteAsync(new string('a', 90));
1268return context.Response.WriteAsync(new string('a', uncompressedBodyLength));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
ResponseTrailersTests.cs (6)
292new string('a', 1024),
293new string('b', 1024 * 4),
294new string('c', 1024 * 8),
295new string('d', 1024 * 16),
296new string('e', 1024 * 32),
297new string('f', 1024 * 64 - 1) }; // Max header size
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (21)
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (4)
166QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(":method", new string('A', 8192 / 2), buffer.Slice(length), out int bytesWritten);
168QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(":path", new string('A', 8192 / 2), buffer.Slice(length), out bytesWritten);
175new KeyValuePair<string, string>(":method", new string('A', 8192 / 2)),
176new KeyValuePair<string, string>(":path", new string('A', 8192 / 2)),
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (10)
runtime\Http3\QPackDecoderTest.cs (4)
166QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(":method", new string('A', 8192 / 2), buffer.Slice(length), out int bytesWritten);
168QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(":path", new string('A', 8192 / 2), buffer.Slice(length), out bytesWritten);
175new KeyValuePair<string, string>(":method", new string('A', 8192 / 2)),
176new KeyValuePair<string, string>(":path", new string('A', 8192 / 2)),
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.TestHost.Tests (4)
Microsoft.AspNetCore.WebSockets.Tests (4)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
Microsoft.AspNetCore.WebUtilities.Tests (25)
HttpResponseStreamWriterTest.cs (21)
74await writer.WriteAsync(new string('a', byteLength));
95await writer.WriteAsync(new string('a', byteLength));
131writer.Write(new string('a', byteLength));
169await writer.WriteAsync(new string('a', byteLength));
191await writer.WriteAsync(new string('a', byteLength));
243writer.Write((new string('a', byteLength)).ToCharArray());
265var array = new string('a', byteLength).ToCharArray();
299var array = new string('a', byteLength).ToCharArray();
346await writer.WriteAsync((new string('a', byteLength)).ToCharArray());
369var array = new string('a', byteLength).ToCharArray();
420writer.NewLine = new string('\n', newLineLength);
425var array = new string('a', byteLength).ToCharArray();
480writer.NewLine = new string('\n', newLineLength);
502writer.NewLine = new string('\n', newLineLength);
524writer.NewLine = new string('\n', newLineLength);
548writer.NewLine = new string('\n', newLineLength);
584var content = new string('a', charCount);
587writer.NewLine = new string('\n', newLineLength);
609writer.NewLine = new string('\n', newLineLength);
663string data = new string(character, charCount);
715var content = new string('a', characterSize - 1) + "𐐀";
Microsoft.Build (7)
Microsoft.Build.BuildCheck.UnitTests (4)
ExecCliBuildCheck_Tests.cs (4)
47string.Join(";", new string('a', 1025), "dotnet build", new string('a', 1025)),
48string.Join(";", new string('a', RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? MaxStackSizeWindows * 2 : MaxStackSizeLinux * 2), "dotnet build"));
58new string('a', RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? MaxStackSizeWindows * 2 : MaxStackSizeLinux * 2));
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (16)
ExpressionTreeExpression_Tests.cs (8)
164"1" + new String('0', 500) + "==" + "1" + new String('0', 500), /* too big for double, eval as string */
165"'1" + new String('0', 500) + "'=='" + "1" + new String('0', 500) + "'" /* too big for double, eval as string */
220"1" + new String('0', 500) + "==2", /* too big for double, eval as string */
221"'1" + new String('0', 500) + "'=='2'", /* too big for double, eval as string */
222"'1" + new String('0', 500) + "'=='01" + new String('0', 500) + "'" /* too big for double, eval as string */
Microsoft.Build.Tasks.UnitTests (11)
Microsoft.Build.Utilities.UnitTests (5)
Microsoft.Cci.Extensions (5)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (6)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Compilation\SymbolVisitorTests.cs (32)
41_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
58_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
76_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
83_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
100_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
109_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
119_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
138_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
146_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
164_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
178_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
209_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
229_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
250_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
258_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
278_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
288_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
299_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
319_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
328_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
349_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
365_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
392argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
401argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
410argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
421argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
441argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
449argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
457argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
467argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
500argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
515argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
Tagging\TagSpanIntervalTreeTests.cs (11)
61buffer.Insert(0, new string('c', 100));
72buffer.Insert(0, new string('c', 100));
83var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(50, count: 50).Select(s => new Span(s, 1))]);
84buffer.Insert(0, new string('c', 100));
97var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]);
98buffer.Insert(0, new string('c', 100));
112var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]);
115buffer.Insert(0, new string('c', 50));
126var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]);
129buffer.Insert(50, new string('c', 50));
140var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]);
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.UnitTests (20)
CryptoBlobParserTests.cs (4)
167new string('0', 160 * 2), // 160 * 2 - the length of a public key, 2 - 2 chars per byte
168new string('0', 596 * 2), // 596 * 2 - the length of a key pair, 2 - 2 chars per byte
169"0702000000240000DEADBEEF" + new string('0', 584 * 2), // private key blob without magic private key
170"0602000000240000DEADBEEF" + new string('0', 136 * 2), // public key blob without magic public key
Text\TextChangeTests.cs (11)
231var text = SourceText.From(new string('.', 2048), Encoding.Unicode, SourceHashAlgorithms.Default); // start bigger than GetText() copy buffer
286new TextChange(new TextSpan(8, 2), new string('a', 10)),
287new TextChange(new TextSpan(15, 2), new string('a', 10)));
347var str = new String('.', 1024);
367var str = new String('.', 1024);
487var a = new string('a', 64);
488var b = new string('b', 64);
510Assert.Equal(new string('c', t.Segments[2].Length), t.Segments[2].ToString());
516var a = new string('a', 64);
517var b = new string('b', 64);
518var c = new string('c', 64);
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
Microsoft.DotNet.AsmDiff (2)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.XUnitAssert.Tests (16)
AsyncCollectionAssertsTests.cs (16)
645 "Actual: " + new string(' ', expectedType.Length) + " null",
755 var paddingBlanks = new string(' ', padding);
797 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
800 " " + new string(' ', padding) + " ↑ (pos 0)",
878 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
881 " " + new string(' ', padding) + " ↑ (pos 0)",
930 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
933 " " + new string(' ', padding) + " ↑ (pos 0)",
970 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
973 " " + new string(' ', padding) + " ↑ (pos 0)",
1031 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1034 " " + new string(' ', padding) + " ↑ (pos 0)",
1237 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1240 " " + new string(' ', padding) + " ↑ (pos 0)",
1364 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1367 " " + new string(' ', padding) + " ↑ (pos 0)",
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (5)
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.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (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 (1)
Microsoft.Net.Http.Headers.Tests (2)
Microsoft.NET.StringTools (3)
Microsoft.NET.StringTools.net35 (2)
Microsoft.NET.StringTools.net35.UnitTests (1)
Microsoft.NET.StringTools.UnitTests (1)
Microsoft.VisualBasic.Core (1)
MSBuild (2)
PresentationCore (3)
PresentationFramework (11)
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)
SecurityWebSite (1)
ServerComparison.FunctionalTests (1)
ServerComparison.TestSites (1)
Sockets.FunctionalTests (2)
Stress.ApiService (4)
StringTools.Benchmark (1)
System.Configuration.ConfigurationManager (3)
System.Drawing.Common.Tests (7)
System.Linq.Expressions (3)
System.Private.CoreLib (5)
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)
System.Runtime.Serialization.Formatters (1)
System.ServiceModel.NetNamedPipe.Tests (2)
System.Text.RegularExpressions (4)
System.Text.RegularExpressions.Generator (4)
System.Windows.Forms (3)
System.Windows.Forms.Primitives.Tests (3)
System.Windows.Forms.Tests (28)
UIAutomationClientSideProviders (3)
VBCSCompiler.UnitTests (1)
xunit.assert (20)
Sdk\ArgumentFormatter.cs (4)
60 internal static readonly string EllipsisInBrackets = "[" + new string((char)0x00B7, 3) + "]";
138 public static string Ellipsis { get; } = new string((char)0x00B7, 3);
494 arraySuffix += string.Format(CultureInfo.CurrentCulture, "[{0}]", new string(',', rank - 1));
526 result = string.Format(CultureInfo.CurrentCulture, "{0}<{1}>", result, new string(',', typeInfo.GenericTypeParameters.Length - 1));
Sdk\Exceptions\DoesNotContainException.cs (5)
50 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
77 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
144 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
171 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
201 new string(' ', failurePointerIndent),
Sdk\Exceptions\EqualException.cs (5)
31 static readonly string newLineAndIndent = Environment.NewLine + new string(' ', 10); // Length of "Expected: " and "Actual: "
124 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2}{3})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex, expectedTypeText);
129 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2}{3})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex, actualTypeText);
162 message += string.Format(CultureInfo.CurrentCulture, "{0}{1}\u2193 (pos {2})", newLineAndIndent, new string(' ', expectedPointer), expectedIndex);
167 message += string.Format(CultureInfo.CurrentCulture, "{0}{1}\u2191 (pos {2})", newLineAndIndent, new string(' ', actualPointer), actualIndex);
Sdk\Exceptions\NotEqualException.cs (2)
98 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex);
103 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex);