1713 references to AppendLine
AnalyzerRunner (2)
aspire (6)
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (3)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting.Azure (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (4)
Aspire.Playground.Tests (3)
Aspire.Templates.Tests (4)
BasicWebSite (4)
BuildActionTelemetryTable (14)
ClientSample (4)
CodeStyleConfigFileGenerator (3)
Crossgen2Tasks (10)
csc (4)
CSharpErrorFactsGenerator (46)
dotnet-dev-certs (4)
dotnet-getdocument (4)
dotnet-openapi (4)
dotnet-sql-cache (4)
dotnet-svcutil-lib (96)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (17)
1414sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
1415sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString()));
1416sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", _includeTimestamp.ToString()));
1417sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString()));
1418sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString()));
1419sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
1420sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString()));
1421sb.AppendLine("EndpointSupportingTokenParameters:");
1422sb.AppendLine(" " + this.EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
1423sb.AppendLine("OptionalEndpointSupportingTokenParameters:");
1424sb.AppendLine(" " + this.OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
1427sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
1433sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1434sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
1439sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
1445sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1446sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
593sb.AppendLine(base.ToString());
595sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", _tokenType == null ? "null" : _tokenType));
596sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
597sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture)));
598sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", _issuerAddress == null ? "null" : _issuerAddress.ToString()));
599sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", _issuerMetadataAddress == null ? "null" : _issuerMetadataAddress.ToString()));
600sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", _defaultMessageSecurityVersion == null ? "null" : _defaultMessageSecurityVersion.ToString()));
601sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", _useStrTransform.ToString()));
605sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
609sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
613sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
614sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
620sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
624sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
627sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", _claimTypeRequirements[i].ClaimType, _claimTypeRequirements[i].IsOptional));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
116sb.AppendLine("No endorsing tokens.");
120sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
121sb.AppendLine(" " + _endorsing[k].ToString().Trim().Replace("\n", "\n "));
125sb.AppendLine("No signed tokens.");
129sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture)));
130sb.AppendLine(" " + _signed[k].ToString().Trim().Replace("\n", "\n "));
134sb.AppendLine("No signed encrypted tokens.");
138sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture)));
139sb.AppendLine(" " + _signedEncrypted[k].ToString().Trim().Replace("\n", "\n "));
143sb.AppendLine("No signed endorsing tokens.");
147sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
148sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (11)
dotnet-user-secrets (6)
GenerateAnalyzerNuspec (25)
Program.cs (25)
44result.AppendLine(@"<?xml version=""1.0""?>");
45result.AppendLine(@"<package xmlns=""http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"">");
46result.AppendLine(@" <metadata>");
86result.AppendLine(@" <dependencies>");
93result.AppendLine(@" </dependencies>");
96result.AppendLine(@" </metadata>");
98result.AppendLine(@" <files>");
99result.AppendLine(@" $CommonFileElements$");
151result.AppendLine(FileElement(assemblyPathForNuspec, target));
164result.AppendLine(FileElement(resourceAssemblyPathForNuspec, targetForNuspec));
175result.AppendLine(FileElement(fileWithPath, "buildTransitive"));
182result.AppendLine(FileElement(readmeFile, directoryName));
194result.AppendLine(FileElement(fileWithPath, Path.Combine("lib", tfm)));
218result.AppendLine(FileElement(fileWithPath, targetPath));
224result.AppendLine(FileElement(Path.Combine(assetsDir, "Install.ps1"), "tools"));
225result.AppendLine(FileElement(Path.Combine(assetsDir, "Uninstall.ps1"), "tools"));
234result.AppendLine(FileElement(Path.Combine(rulesetsDir, ruleset), "rulesets"));
246result.AppendLine(FileElement(Path.Combine(directory, editorconfig), $"editorconfig\\{directoryName}"));
257result.AppendLine(FileElement(Path.Combine(globalAnalyzerConfigsDir, globalconfig), $"buildTransitive\\config"));
271result.AppendLine(FileElement(fileWithPath, "documentation"));
280result.AppendLine(FileElement(fileWithPath, "documentation"));
289result.AppendLine(FileElement(fileWithPath, "documentation"));
293result.AppendLine(FileElement(Path.Combine(assetsDir, "ThirdPartyNotices.txt"), ""));
294result.AppendLine(@" </files>");
296result.AppendLine(@"</package>");
GenerateDocumentationAndConfigFiles (21)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (4)
HelixTestRunner (2)
IdeCoreBenchmarks (2)
illink (1)
ILLink.Tasks (27)
Infrastructure.Common (8)
xunit\WcfTestCase.cs (6)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName));
78etwOutput.AppendLine(string.Format(DisplayName + ": " + item.Message, item.Payload.ToArray()));
85etwOutput.AppendLine(String.Format("ETW message encountered FormatException '{0}' using DisplayName '{1}', format '{2}', and '{3}' payload items",
88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message));
93etwOutput.AppendLine(string.Format("{0}: {1}", DisplayName, payloadPara.ToString()));
98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
Interop.FunctionalTests (2)
InteropTests (6)
Metrics (11)
Metrics.Legacy (11)
Microsoft.Arcade.Test.Common (6)
Microsoft.AspNetCore.App.Analyzers.Test (8)
Microsoft.AspNetCore.Authentication.Test (7)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Http.Extensions (17)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (38)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Shared.Tests (4)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (5)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (6)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (7)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (16)
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (4)
Microsoft.CodeAnalysis.CSharp (26)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (21)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (179)
Semantics\OverloadResolutionPerfTests.cs (150)
27builder.AppendLine("class C");
28builder.AppendLine("{");
29builder.AppendLine($" static void F() {{ F(null); }}"); // matches n overloads: F(C0), F(C1), ...
34builder.AppendLine("}");
53builder.AppendLine("class C");
54builder.AppendLine("{");
55builder.AppendLine($" static object F(C x) => x + null;"); // matches n overloads: +(C, C0), +(C, C1), ...
60builder.AppendLine("}");
78builder.AppendLine("using System;");
83builder.AppendLine("static class S");
84builder.AppendLine("{");
89builder.AppendLine("}");
100builder.AppendLine("using System;");
105builder.AppendLine("class C");
106builder.AppendLine("{");
112builder.AppendLine("}");
123builder.AppendLine("using System;");
128builder.AppendLine("static class S");
129builder.AppendLine("{");
134builder.AppendLine("}");
145builder.AppendLine("using System;");
150builder.AppendLine("static class S");
151builder.AppendLine("{");
156builder.AppendLine("}");
167builder.AppendLine("using System;");
172builder.AppendLine("static class S");
173builder.AppendLine("{");
185builder.AppendLine("}");
200builder.AppendLine("using System;");
205builder.AppendLine("{");
210builder.AppendLine(" {");
220builder.AppendLine(" return null;");
221builder.AppendLine(" }");
224builder.AppendLine("}");
227builder.AppendLine(@"
465builder.AppendLine("{");
466builder.AppendLine(" static object[] F = new[]");
467builder.AppendLine(" {");
472builder.AppendLine(" };");
473builder.AppendLine("}");
488builder.AppendLine("static class Program");
489builder.AppendLine("{");
492builder.AppendLine(i % 2 == 0 ? "#nullable enable" : "#nullable disable");
495builder.AppendLine("}");
514builder.AppendLine("#nullable enable");
515builder.AppendLine("class Program");
516builder.AppendLine("{");
517builder.AppendLine(" static void F1(System.Func<object, object> f) { }");
518builder.AppendLine(" static void F2(object arg)");
519builder.AppendLine(" {");
524builder.AppendLine(" }");
525builder.AppendLine("}");
544builder.AppendLine("#nullable enable");
545builder.AppendLine("class Program");
546builder.AppendLine("{");
547builder.AppendLine(" static void F(object arg)");
548builder.AppendLine(" {");
554builder.AppendLine(" }");
555builder.AppendLine("}");
573builder.AppendLine("#pragma warning disable 168");
574builder.AppendLine("#nullable enable");
575builder.AppendLine("class Program");
576builder.AppendLine("{");
577builder.AppendLine(" static void F(object arg)");
578builder.AppendLine(" {");
583builder.AppendLine(" object i0 = arg;");
584builder.AppendLine(" if (i0 == null) i0.ToString();");
585builder.AppendLine(" }");
586builder.AppendLine("}");
601builder.AppendLine("#nullable enable");
602builder.AppendLine("class Program");
603builder.AppendLine("{");
604builder.AppendLine(" static object F()");
605builder.AppendLine(" {");
606builder.AppendLine(" object i0 = null;");
612builder.AppendLine(" }");
613builder.AppendLine("}");
633builder.AppendLine("#nullable enable");
634builder.AppendLine("class Program");
635builder.AppendLine("{");
636builder.AppendLine(" static void F0(System.Action a) { }");
637builder.AppendLine(" static U F1<T, U>(T arg, System.Func<T, U> f) => f(arg);");
638builder.AppendLine(" static object F2(object arg)");
639builder.AppendLine(" {");
640builder.AppendLine(" if (arg == null) { }");
641builder.AppendLine(" var value = arg;");
642builder.AppendLine(" F0(() => { });");
647builder.AppendLine(" return value;");
648builder.AppendLine(" }");
649builder.AppendLine("}");
666builder.AppendLine("#nullable enable");
667builder.AppendLine("class C");
668builder.AppendLine("{");
669builder.AppendLine(" C F(int i) => this;");
670builder.AppendLine(" static void Main()");
671builder.AppendLine(" {");
672builder.AppendLine(" C c = new C()");
677builder.AppendLine(" ;");
678builder.AppendLine(" }");
679builder.AppendLine("}");
694builder.AppendLine("#nullable enable");
695builder.AppendLine("class C");
696builder.AppendLine("{");
697builder.AppendLine(" C F(int i) => this;");
698builder.AppendLine(" static void Main()");
699builder.AppendLine(" {");
700builder.AppendLine(" Local();");
701builder.AppendLine(" static void Local()");
702builder.AppendLine(" {");
703builder.AppendLine(" C c = new C()");
708builder.AppendLine(" ;");
709builder.AppendLine(" }");
710builder.AppendLine(" Local();");
711builder.AppendLine(" }");
712builder.AppendLine("}");
745sourceBuilder.AppendLine(" c!.M(x)");
804builder.AppendLine("#nullable enable");
805builder.AppendLine("class Program");
806builder.AppendLine("{");
807builder.AppendLine(" static int GetIndex() => 0;");
808builder.AppendLine(" static void Main()");
809builder.AppendLine(" {");
810builder.AppendLine(" int index = 0;");
811builder.AppendLine(" int tmp1;");
812builder.AppendLine(" int tmp2; // unused");
814builder.AppendLine("L0:");
815builder.AppendLine(" if (index < 64) goto LSwitch;");
819builder.AppendLine(" tmp1 = GetIndex();");
820builder.AppendLine(" if (index != tmp1)");
821builder.AppendLine(" {");
822builder.AppendLine(" if (index < 64) goto LSwitch;");
824builder.AppendLine(" }");
827builder.AppendLine(" tmp1 = GetIndex();");
828builder.AppendLine(" return;");
829builder.AppendLine("LSwitch:");
830builder.AppendLine(" int tmp3 = index + 1;");
831builder.AppendLine(" switch (GetIndex())");
832builder.AppendLine(" {");
836builder.AppendLine(" index++;");
839builder.AppendLine(" default:");
840builder.AppendLine(" break;");
841builder.AppendLine(" }");
842builder.AppendLine(" }");
843builder.AppendLine("}");
860builder.AppendLine(
897builder.AppendLine(
939builder.AppendLine(
1071builder.AppendLine("""
1082builder.AppendLine(" a = new A();");
1084builder.AppendLine("""
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Compilation\SymbolVisitorTests.cs (20)
41_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
58_output.AppendLine(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);
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);
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);
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);
457argument.AppendLine(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 (16)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.LanguageServer (14)
Testing\TestRunner.TestRunHandler.cs (12)
146messageBuilder.AppendLine(IndentString($"{LanguageServerResources.Message}:", 4));
147messageBuilder.AppendLine(IndentString(result.ErrorMessage, 8));
152messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Stack_Trace}:", 4));
153messageBuilder.AppendLine(IndentString(result.ErrorStackTrace, 8));
159messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Standard_Output_Messages}:", 4));
160messageBuilder.AppendLine(FormatMessages(standardOutputMessages, 8));
166messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Standard_Error_Messages}:", 4));
167messageBuilder.AppendLine(FormatMessages(standardErrorMessages, 8));
173messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Debug_Trace_Messages}:", 4));
174messageBuilder.AppendLine(FormatMessages(debugTraceMessages, 8));
180messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Additional_Info_Messages}:", 4));
181messageBuilder.AppendLine(FormatMessages(additionalInfoMessages, 8));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (23)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
Microsoft.CodeAnalysis.Test.Utilities (74)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Installers (18)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.GenFacades (5)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.DotNet.NuGetRepack.Tests (5)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.RemoteExecutor (8)
Microsoft.DotNet.SignTool (3)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.ApiDescription.Client.Tests (6)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Logging.AzureAppServices (3)
Microsoft.Extensions.Logging.EventLog (5)
Microsoft.Extensions.Logging.Generators (9)
Microsoft.Extensions.Options.SourceGeneration (10)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.Extensions.Telemetry (2)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Controls.SourceGen (30)
CodeBehindGenerator.cs (30)
284 sb.AppendLine(AutoGeneratedHeaderText);
290 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", {(rootType == null ? "null" : "typeof(global::" + rootClrNamespace + "." + rootType + ")")})]");
304 sb.AppendLine($"namespace {rootClrNamespace}");
305 sb.AppendLine("{");
306 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlFilePath(\"{projItem.RelativePath?.Replace("\\", "\\\\")}\")]");
309 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlCompilation(global::Microsoft.Maui.Controls.Xaml.XamlCompilationOptions.Compile)]");
314 sb.AppendLine($"\t[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]");
317 sb.AppendLine($"\t{accessModifier} partial class {rootType} : {baseType}");
318 sb.AppendLine("\t{");
323 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
324 sb.AppendLine($"\t\tpublic {rootType}()");
325 sb.AppendLine("\t\t{");
326 sb.AppendLine("\t\t\tInitializeComponent();");
327 sb.AppendLine("\t\t}");
336 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
338 sb.AppendLine($"\t\t{faccess} {ftype} {EscapeIdentifier(fname)};");
344 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
349 sb.AppendLine($"#if NET5_0_OR_GREATER");
353 sb.AppendLine($"\t\t[global::System.Diagnostics.CodeAnalysis.MemberNotNullAttribute(nameof({EscapeIdentifier(fname)}))]");
356 sb.AppendLine($"#endif");
359 sb.AppendLine("\t\tprivate void InitializeComponent()");
360 sb.AppendLine("\t\t{");
361 sb.AppendLine("#pragma warning disable IL2026, IL3050 // The body of InitializeComponent will be replaced by XamlC so LoadFromXaml will never be called in production builds");
362 sb.AppendLine($"\t\t\tglobal::Microsoft.Maui.Controls.Xaml.Extensions.LoadFromXaml(this, typeof({rootType}));");
368 sb.AppendLine($"\t\t\t{EscapeIdentifier(fname)} = global::Microsoft.Maui.Controls.NameScopeExtensions.FindByName<{ftype}>(this, \"{fname}\");");
371 sb.AppendLine("#pragma warning restore IL2026, IL3050");
373 sb.AppendLine("\t\t}");
374 sb.AppendLine("\t}");
375 sb.AppendLine("}");
637 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", null)]");
Microsoft.Maui.Essentials (1)
Microsoft.ML.Data (17)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.LLaMA.Tests (2)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi.Tests (3)
Microsoft.ML.StandardTrainers (15)
Microsoft.NET.StringTools (5)
Microsoft.NET.StringTools.net35 (12)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
PrepareTests (8)
PresentationFramework (7)
Replay (2)
Roslyn.Diagnostics.Analyzers (11)
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.PdbUtilities (4)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (5)
RoutingSandbox (3)
RoutingWebSite (2)
RulesetToEditorconfigConverter (9)
RunTests (18)
ScenarioTests.Common.Tests (22)
Security.TransportSecurity.IntegrationTests (12)
Https\HttpsTests.4.1.0.cs (12)
91errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
130errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
169errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
208errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
StackDepthTest (3)
StatusCodePagesSample (7)
Stress.ApiService (1)
Swaggatherer (4)
System.ComponentModel.Composition (2)
System.Diagnostics.FileVersionInfo (13)
System.Linq.Expressions (8)
System.Numerics.Tensors (5)
System.Private.CoreLib (49)
System.Private.CoreLib.Generators (8)
System.Private.Xml (5)
System.Security.Cryptography (25)
System.ServiceModel.Primitives (57)
System\ServiceModel\Channels\SecurityBindingElement.cs (17)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
607sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString()));
608sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", IncludeTimestamp.ToString()));
609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString()));
610sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", MessageSecurityVersion.ToString()));
611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString()));
613sb.AppendLine("EndpointSupportingTokenParameters:");
614sb.AppendLine(" " + EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
615sb.AppendLine("OptionalEndpointSupportingTokenParameters:");
616sb.AppendLine(" " + OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
620sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
627sb.AppendLine(" " + OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
633sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
639sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
640sb.AppendLine(" " + OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
151sb.AppendLine(base.ToString());
153sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "TokenType: {0}", TokenType == null ? "null" : TokenType));
154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
155sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture)));
156sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", IssuerAddress == null ? "null" : IssuerAddress.ToString()));
157sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", IssuerMetadataAddress == null ? "null" : IssuerMetadataAddress.ToString()));
158sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", DefaultMessageSecurityVersion == null ? "null" : DefaultMessageSecurityVersion.ToString()));
159sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", UseStrTransform.ToString()));
163sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
167sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
171sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
172sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
178sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
182sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
185sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", ClaimTypeRequirements[i].ClaimType, ClaimTypeRequirements[i].IsOptional));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
117sb.AppendLine("No endorsing tokens.");
123sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
124sb.AppendLine(" " + Endorsing[k].ToString().Trim().Replace("\n", "\n "));
130sb.AppendLine("No signed tokens.");
136sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture)));
137sb.AppendLine(" " + Signed[k].ToString().Trim().Replace("\n", "\n "));
143sb.AppendLine("No signed encrypted tokens.");
149sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture)));
150sb.AppendLine(" " + SignedEncrypted[k].ToString().Trim().Replace("\n", "\n "));
156sb.AppendLine("No signed endorsing tokens.");
162sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
163sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
System.ServiceModel.Primitives.Tests (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (2)
System.Text.RegularExpressions.Generator (2)
System.Windows.Forms (3)
System.Windows.Forms.Primitives.TestUtilities (3)
System.Windows.Forms.PrivateSourceGenerators (12)
System.Windows.Forms.UI.IntegrationTests (4)
System.Windows.Input.Manipulations (7)
Templates.Blazor.Tests (6)
Templates.Blazor.WebAssembly.Auth.Tests (11)
Templates.Blazor.WebAssembly.Tests (11)
Templates.Mvc.Tests (11)
Templates.Tests (11)
Test.Utilities (5)
Text.Analyzers (11)
UnitTests.Common (44)
TestHelpers.cs (25)
101errorBuilder.AppendLine(results);
106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
128errorBuilder.AppendLine(String.Format("{0} expected Type = {0}, actual = {1}", prefix, expectedType, contractType));
135errorBuilder.AppendLine(String.Format("{0} operations.Count: expected={1}, actual = {2}", prefix, expectedOperations.Length, ops.Count));
144errorBuilder.AppendLine(String.Format("{0} operations: could not find operation {1}", prefix, expectedOp.Name));
151errorBuilder.AppendLine(String.Format("{0} expected operation Name = {1}, actual = {2}",
158errorBuilder.AppendLine(String.Format("{0} expected operation {1}.IsOneWay = {2}, actual = {3}",
166errorBuilder.AppendLine(String.Format("{0} expected operation {1}.HasTask = {2}, actual = {3}",
178errorBuilder.AppendLine(String.Format("{0} could not find expected message action {1} in operation {2}",
186errorBuilder.AppendLine(String.Format("{0} message action {1} expected Direction = {2}, actual = {3}",
194errorBuilder.AppendLine(String.Format("{0} message action {1} expected MessageType = {2}, actual = {3}",
213errorBuilder.AppendLine(String.Format("{0} unexpected exception was caught: {1}",
226errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part count = {2}, actual = {3}",
243errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2} but did not find it.",
250errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2}, actual = {3}",
256errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Type = {3}, actual = {4}",
262errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Multiple = {3}, actual = {4}",
379errorBuilder.AppendLine(String.Format("AddBindingParameters {1}", errorMessage));
383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString()));
398errorBuilder.AppendLine(String.Format("ApplyClientBehavior {1}", errorMessage));
402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString()));
423errorBuilder.AppendLine(String.Format("Validate {1}", errorMessage));
428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
vbc (4)
VBCSCompiler (4)
Wasm.Performance.ConsoleHost (4)
Wasm.Performance.Driver (3)