134 implementations of Add
dotnet-svcutil-lib (1)
InMemory.FunctionalTests (2)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (5)
Microsoft.Build (9)
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Ollama (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.Maui.Controls (3)
Microsoft.ML.Core (1)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.TorchSharp (1)
MSBuild (2)
MSBuildTaskHost (3)
PresentationCore (4)
PresentationFramework (2)
Shared (1)
System.Collections (3)
System.Collections.Concurrent (1)
System.Collections.Immutable (5)
System.Composition.Hosting (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.Linq.Expressions (1)
System.Net.Http (1)
System.Private.CoreLib (3)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Primitives (1)
System.Speech (1)
System.Text.Json (1)
System.Xaml (2)
System.Xaml.Tests (2)
781 references to Add
ApplicationModelWebSite (1)
Aspire.Hosting (4)
Aspire.Hosting.Azure (1)
BasicWebSite (2)
CSharpSyntaxGenerator (1)
dotnet-svcutil-lib (7)
dotnet-user-jwts (1)
GenericHostWebSite (1)
HttpStress (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (1)
illink (1)
InMemory.FunctionalTests (20)
Http3\Http3StreamTests.cs (11)
660response.Headers.Add(HeaderNames.TransferEncoding, "chunked");
661response.Headers.Add(HeaderNames.Upgrade, "websocket");
662response.Headers.Add(HeaderNames.Connection, "Keep-Alive");
663response.Headers.Add(HeaderNames.KeepAlive, "timeout=5, max=1000");
664response.Headers.Add(HeaderNames.ProxyConnection, "keep-alive");
832trailersFeature.Trailers.Add("Trailer1", "Value1");
833trailersFeature.Trailers.Add("Trailer2", "Value2");
956trailersFeature.Trailers.Add("Trailer1", "Value1");
957trailersFeature.Trailers.Add("Trailer2", "Value2");
988trailersFeature.Trailers.Add("Trailer1", "Value1");
989trailersFeature.Trailers.Add("Trailer2", "Value2");
InProcessWebSite (4)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Antiforgery.Test (3)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Core.Test (3)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (9)
Microsoft.AspNetCore.Authentication.Test (23)
GoogleTests.cs (10)
551properties.Items.Add(correlationKey, correlationValue);
617properties.Items.Add(correlationKey, correlationValue);
670properties.Items.Add(correlationKey, correlationValue);
714properties.Items.Add(correlationKey, correlationValue);
755properties.Items.Add(correlationKey, correlationValue);
799properties.Items.Add(correlationKey, correlationValue);
875properties.Items.Add(correlationKey, correlationValue);
919properties.Items.Add(correlationKey, correlationValue);
963properties.Items.Add(correlationKey, correlationValue);
1000properties.Items.Add(correlationKey, correlationValue);
Microsoft.AspNetCore.BrowserTesting (3)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Tests (2)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Cors.Test (22)
CorsMiddlewareTests.cs (19)
392httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
421httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
525context.Response.Headers.Add("Test", "Should-Appear");
601context.Response.Headers.Add("Test", "Should-Not-Exist");
659httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { OriginUrl });
660httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "PUT" });
700httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
730httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
758httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
759httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "GET" });
790httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
791httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "GET" });
822httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
857httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
894httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
927httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
957httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
984httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
1032httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { "http://example.com" });
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Microsoft.AspNetCore.Diagnostics.Tests (26)
ExceptionHandlerTest.cs (16)
216httpContext.Response.Headers.Add("Cache-Control", new[] { "max-age=600" });
217httpContext.Response.Headers.Add("Pragma", new[] { "max-age=600" });
218httpContext.Response.Headers.Add(
220httpContext.Response.Headers.Add("ETag", new[] { "12345" });
278httpContext.Response.Headers.Add("Cache-Control", new[] { "max-age=3600" });
279httpContext.Response.Headers.Add("Pragma", new[] { "max-age=3600" });
280httpContext.Response.Headers.Add("Expires", new[] { expiresTime });
281httpContext.Response.Headers.Add("ETag", new[] { "abcdef" });
350httpContext.Response.Headers.Add("Cache-Control", new[] { "max-age=3600" });
351httpContext.Response.Headers.Add("Pragma", new[] { "max-age=3600" });
352httpContext.Response.Headers.Add("Expires", new[] { DateTime.UtcNow.AddDays(10).ToString("R") });
353httpContext.Response.Headers.Add("ETag", new[] { "abcdef" });
418httpContext.Response.Headers.Add("Cache-Control", new[] { "max-age=3600" });
419httpContext.Response.Headers.Add("Pragma", new[] { "max-age=3600" });
420httpContext.Response.Headers.Add("Expires", new[] { expiresTime });
421httpContext.Response.Headers.Add("ETag", new[] { "abcdef" });
Microsoft.AspNetCore.HeaderParsing.Tests (4)
Microsoft.AspNetCore.HeaderPropagation (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (23)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
Microsoft.AspNetCore.Http.Extensions.Tests (23)
RequestDelegateFactoryTests.cs (16)
85httpContext.Items.Add("invoked", true);
127httpContext.Items.Add("invoked", true);
159httpContext.Items.Add("invoked", _invokedValue);
219httpContext.Items.Add("input", value);
224httpContext.Items.Add("input", value);
229httpContext.Items.Add("input", (object?)value ?? "Null");
234httpContext.Items.Add("input", value);
787httpContext.Items.Add("body", todo);
792httpContext.Items.Add("body", todo);
797httpContext.Items.Add("body", todo);
802args.HttpContext.Items.Add("body", args.Todo);
821args.HttpContext.Items.Add("body", args.Todo);
2122context.Items.Add("foo", args.Foo);
3090var @delegate = (string name, HttpContext context) => context.Items.Add("param", name);
3223options.RuntimeConfigurationOptions.Add("System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault", false.ToString());
3243options.RuntimeConfigurationOptions.Add("System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault", true.ToString());
Microsoft.AspNetCore.Http.Results.Tests (4)
Microsoft.AspNetCore.Http.Tests (6)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.JsonPatch.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
Microsoft.AspNetCore.Mvc.Core (12)
Microsoft.AspNetCore.Mvc.Core.Test (39)
ModelBinding\Binders\HeaderModelBinderTests.cs (11)
28bindingContext.HttpContext.Request.Headers.Add(header, new[] { headerValue });
50bindingContext.HttpContext.Request.Headers.Add(header, new[] { headerValue });
77bindingContext.HttpContext.Request.Headers.Add(header, new[] { headerValue });
96bindingContext.HttpContext.Request.Headers.Add("Header", new[] { headerValue });
146bindingContext.HttpContext.Request.Headers.Add("Header", headerValue);
206bindingContext.HttpContext.Request.Headers.Add("Header", new[] { headerValue });
223bindingContext.HttpContext.Request.Headers.Add("Header", "application/json,text/json");
240bindingContext.HttpContext.Request.Headers.Add("Header", "application/json,text/json");
264bindingContext.HttpContext.Request.Headers.Add("Header", "application/json,text/json");
286bindingContext.HttpContext.Request.Headers.Add("Header", headerValue);
310bindingContext.HttpContext.Request.Headers.Add("Header", headerValue);
Microsoft.AspNetCore.Mvc.Cors.Test (15)
CorsAuthorizationFilterTest.cs (8)
138httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestHeaders, headers.Headers.Split(','));
139httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { headers.Method });
140httpContext.Request.Headers.Add(CorsConstants.AccessControlExposeHeaders, headers.ExposedHeaders.Split(','));
141httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { headers.Origin });
201headers.Add(CorsConstants.AccessControlAllowCredentials, new[] { "true" });
204headers.Add(CorsConstants.AccessControlAllowHeaders, result1.AllowedHeaders.ToArray());
205headers.Add(CorsConstants.AccessControlAllowMethods, result1.AllowedMethods.ToArray());
206headers.Add(CorsConstants.AccessControlExposeHeaders, result1.AllowedExposedHeaders.ToArray());
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (24)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
HeaderModelBinderIntegrationTest.cs (13)
81request => request.Headers.Add("Header", new[] { "someValue" }));
123request => request.Headers.Add("Header", new[] { "someValue" }));
169request => request.Headers.Add("Header", new[] { "someValue" }));
216request => request.Headers.Add("Header", new[] { "someValue" }));
275void action(HttpRequest r) => r.Headers.Add("CustomParameter", new[] { expectedAttemptedValue });
322request.Headers.Add("NoCommaString", "someValue");
323request.Headers.Add("OneCommaSeparatedString", "one, two, three");
324request.Headers.Add("IntProperty", "10");
325request.Headers.Add("NullableIntProperty", "300");
326request.Headers.Add("ArrayOfString", "first, second");
327request.Headers.Add("EnumerableOfDouble", "10.51, 45.44");
328request.Headers.Add("ListOfEnum", "Sedan, Coupe");
329request.Headers.Add("ListOfOrderWithTypeConverter", "10");
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.Test (5)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (6)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.RequestDecompression.Tests (4)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.Tests (19)
DefaultParameterPolicyFactoryTest.cs (11)
36options.ConstraintMap.Add("bad", typeof(string));
196options.ConstraintMap.Add("customParameterPolicy", typeof(CustomParameterPolicy));
215options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithArguments));
236options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithMultipleArguments));
259options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithOnlyServiceArguments));
280options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithMultipleCtors));
301options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithMultipleCtorsInAscendingOrder));
323options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithAmbiguousMultipleCtors));
344options.ConstraintMap.Add("regex-service", typeof(RegexInlineRouteConstraintWithService));
365options.ConstraintMap.Add("customConstraintPolicy", typeof(CustomParameterPolicyWithArguments));
385options.ConstraintMap.Add("customParameterPolicy", typeof(CustomParameterPolicy));
Microsoft.AspNetCore.Server.HttpSys (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
ResponseHeaderTests.cs (7)
222responseHeaders.Add("Custom1", new string[] { "value1a", "value1b" });
223responseHeaders.Add("Custom2", new string[] { "value2a, value2b" });
229Assert.Throws<InvalidOperationException>(() => responseHeaders.Add("Custom3", new string[] { "value3a, value3b", "value3c" }));
253responseHeaders.Add("Custom1", new string[] { "value1a", "value1b" });
254responseHeaders.Add("Custom2", new string[] { "value2a, value2b" });
260Assert.Throws<InvalidOperationException>(() => responseHeaders.Add("Custom3", new string[] { "value3a, value3b", "value3c" }));
282responseHeaders.Add(headerName, headerValue);
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
HttpRequestHeadersTests.cs (15)
292headers.Add("host", new[] { "localhost" });
293headers.Add("custom", new[] { "value" });
294headers.Add("Content-Length", new[] { "0" });
299Assert.Throws<ArgumentException>(() => headers.Add("host", new[] { "localhost" }));
300Assert.Throws<ArgumentException>(() => headers.Add("custom", new[] { "value" }));
301Assert.Throws<ArgumentException>(() => headers.Add("Content-Length", new[] { "0" }));
311headers.Add("host", new[] { "localhost" });
312headers.Add("custom", new[] { "value" });
313headers.Add("Content-Length", new[] { "0" });
333headers.Add("host", new[] { "localhost" });
334headers.Add("custom", new[] { "value" });
335headers.Add("Content-Length", new[] { "0" });
371headers.Add("host", new[] { "localhost" });
372headers.Add("Content-Length", new[] { "0" });
373headers.Add("custom", new[] { "value" });
HttpResponseHeadersTests.cs (9)
134((IDictionary<string, StringValues>)responseHeaders).Add(key, value);
228((IDictionary<string, StringValues>)responseHeaders).Add("Unknown", value);
258((IDictionary<string, StringValues>)responseHeaders).Add("Unknown", value);
267Assert.Throws<InvalidOperationException>(() => ((IDictionary<string, StringValues>)headers).Add("my-header", new[] { "value" }));
284dictionary.Add("my-header", new[] { "value" });
295dictionary.Add("my-header", new[] { "value" });
306dictionary.Add("my-header", new[] { "value" });
319var exception = Assert.Throws<InvalidOperationException>(() => dictionary.Add("Content-Length", new[] { contentLength }));
350dictionary.Add("Content-Length", contentLength);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Shared.Tests (4)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.TestHost (5)
Microsoft.Build (19)
Microsoft.Build.Engine.OM.UnitTests (4)
Microsoft.Build.Engine.UnitTests (107)
BackEnd\AssemblyTaskFactory_Tests.cs (30)
176factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.currentRuntime);
177factoryIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
182taskIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.GetCurrentMSBuildRuntime());
183taskIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.GetCurrentMSBuildArchitecture());
196factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2);
197factoryIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
202taskIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4);
203taskIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
276taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
277taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
307taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.GetCurrentMSBuildRuntime());
308taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.GetCurrentMSBuildArchitecture());
338taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
339taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
371taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
372taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.GetCurrentMSBuildArchitecture());
404factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.GetCurrentMSBuildRuntime());
409taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
439taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2);
440taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
472taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2);
473taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
503factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2);
508taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
567taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
568taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
602taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
603taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
631factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any);
632factoryParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.any);
BackEnd\TaskHostConfiguration_Tests.cs (8)
264parameters2.Add("Text", "Hello!");
265parameters2.Add("MyBoolValue", true);
266parameters2.Add("MyITaskItem", new TaskItem("ABC"));
267parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") });
486parameters.Add("Text", "Foo");
487parameters.Add("BoolValue", false);
536parameters.Add("TaskItemValue", new TaskItem("Foo"));
584parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
BackEnd\TaskHostTaskComplete_Tests.cs (8)
82parameters2.Add("Text", "Hello!");
83parameters2.Add("MyBoolValue", true);
84parameters2.Add("MyITaskItem", new TaskItem("ABC"));
85parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") });
159parameters.Add("Text", "Foo");
160parameters.Add("BoolValue", false);
187parameters.Add("TaskItemValue", new TaskItem("Foo"));
213parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
Definition\Toolset_Tests.cs (10)
264globalProperties.Add("VisualStudioVersion", "99.0");
316globalProperties.Add("VisualStudioVersion", "v14.0");
336globalProperties.Add("VisualStudioVersion", "v13.0");
344explicitGlobalProperties.Add("VisualStudioVersion", "baz");
364globalProperties.Add("VisualStudioVersion", ObjectModelHelpers.CurrentVisualStudioVersion);
407globalProperties.Add("VisualStudioVersion", "v13.0");
452globalProperties.Add("VisualStudioVersion", "v13.0");
460explicitGlobalProperties.Add("VisualStudioVersion", "FakeSubToolset");
510properties.Add("a", "a1");
511properties.Add("b", "b1");
Evaluation\Evaluator_Tests.cs (36)
3000globalProperties.Add("Foo", "Baz");
3030globalProperties.Add("Foo", "Baz");
3060globalProperties.Add("Foo", "Baz");
3090globalProperties.Add("Foo", "Baz");
3130globalProperties.Add("Foo", "Foo1");
3131globalProperties.Add("Bar", "Bar1");
3132globalProperties.Add("Baz", "Baz1");
3133globalProperties.Add("GlobalProperty", "Foo");
3172globalProperties.Add("Foo", "Baz");
3205globalProperties.Add("Foo", "Baz");
3206globalProperties.Add("Goo", "Foo");
3239globalProperties.Add("Foo", "Baz");
3240globalProperties.Add("Goo", "Foo");
3272globalProperties.Add("Foo", "Baz");
3301globalProperties.Add("Foo", "Baz");
3302globalProperties.Add("Goo", "Foo");
3383globalProperties.Add("Foo", "Foo1");
3384globalProperties.Add("Bar", "Bar1");
3385globalProperties.Add("Baz", "Baz1");
3440globalProperties.Add("Foo", "Baz");
3501globalProperties.Add("Foo", "Baz");
3561globalProperties.Add("Foo", "Baz");
3633globalProperties.Add("Foo", "Foo3");
3634globalProperties.Add("Bar", "Bar3");
3635globalProperties.Add("Baz", "Baz3");
3706globalProperties.Add("Foo", "Foo3");
3707globalProperties.Add("Bar", "Bar3");
3708globalProperties.Add("Baz", "Baz3");
3771globalProperties.Add("Foo", "Foo1");
3833globalProperties.Add("Foo", "Foo1");
4176globalProperties.Add("c", "c5");
4177globalProperties.Add("d", "d5");
4236globalProperties.Add("VisualStudioVersion", "11.0");
4288globalProperties.Add("VisualStudioVersion", "11.0");
5164properties.Add("a", "a1");
5165properties.Add("b", "b1");
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (4)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (3)
Microsoft.Build.Utilities.UnitTests (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Diagnostics\DiagnosticTest.cs (23)
576warnings.Add(MessageProvider.Instance.GetIdForErrorCode(420), ReportDiagnostic.Suppress);
620warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Suppress);
680warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
731warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
787warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
843warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
901warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
959warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1018warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1088warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1159warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1224warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1277warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1331warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1381warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1488warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1505warnings.Add(MessageProvider.Instance.GetIdForErrorCode(1633), ReportDiagnostic.Suppress);
1555warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1605warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1661warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1708warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1745warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
1778warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Helix.JobSender (6)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (9)
Microsoft.Extensions.Http.Diagnostics.Tests (34)
Logging\AcceptanceTests.cs (18)
139o.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData);
140o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData);
141o.RequestHeadersDataClasses.Add("RequestHeaderFirst", FakeTaxonomy.PrivateData);
149o.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData);
150o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData);
151o.RequestHeadersDataClasses.Add("RequestHeaderSecond", FakeTaxonomy.PrivateData);
218x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData);
219x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData);
220x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData);
229x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData);
230x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData);
231x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData);
301o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData);
347o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData);
412o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData);
665x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData);
666x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData);
667x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData);
Microsoft.Extensions.Http.Resilience.Tests (2)
Microsoft.Interop.SourceGeneration (1)
Microsoft.Maui.Controls (2)
Microsoft.ML.CpuMath.UnitTests (1)
Microsoft.ML.OnnxTransformerTest (1)
Microsoft.ML.SearchSpace (2)
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.DevKit (4)
MSBuild (2)
MSBuildTaskHost (2)
PresentationCore (3)
PresentationFramework (14)
PresentationUI (4)
ReachFramework (3)
RequestDecompressionSample (1)
RoutingWebSite (1)
Shared.Tests (2)
Sockets.FunctionalTests (1)
System.Collections.Concurrent (2)
System.ComponentModel.Composition (4)
System.Composition.Hosting (2)
System.Composition.TypedParts (1)
System.Private.CoreLib (1)
System.Private.Xml (2)
System.Security.Claims (1)
System.Windows.Forms (1)