9708 references to List
Accessibility_Core_App (1)
AnalyzerRunner (2)
ApiExplorerWebSite (5)
ApplicationModelWebSite (2)
Aspire.Azure.Messaging.EventHubs.Tests (3)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Components.Common.Tests (4)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (59)
Aspire.Dashboard.Components.Tests (11)
Aspire.Dashboard.Tests (21)
TelemetryRepositoryTests\MetricsTests.cs (5)
109var metricAttributes = new List<KeyValuePair<string, string>>();
110var meterAttributes = new List<KeyValuePair<string, string>>();
223var metricAttributes = new List<KeyValuePair<string, string>>();
224var meterAttributes = new List<KeyValuePair<string, string>>
342CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }),
TelemetryRepositoryTests\TraceTests.cs (6)
533CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event>
610CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link>
766var attributes = new List<KeyValuePair<string, string>>();
773var events = new List<Span.Types.Event>();
993CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link>
997CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (26)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Dapr (2)
Aspire.Hosting.Garnet.Tests (3)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Nats.Tests (1)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (10)
Aspire.Hosting.Valkey.Tests (3)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (1)
Aspire.RabbitMQ.Client (1)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.StackExchange.Redis (1)
Aspire.Workload.Tests (2)
AzureContainerApps.ApiService (1)
AzureStorageEndToEnd.ApiService (1)
BasicWebSite (3)
BasketService (3)
BicepSample.ApiService (6)
BinaryFormatTests (22)
BuildActionTelemetryTable (1)
BuildBoss (4)
BuildValidator (4)
CatalogDb (1)
CatalogModel (1)
CdkSample.ApiService (2)
ClaimsTransformation (1)
Client.ClientBase.IntegrationTests (1)
ClientSample (7)
CodeGenerator (1)
ConfigurationSchemaGenerator (13)
Cookies (1)
CosmosEndToEnd.ApiService (1)
Crossgen2Tasks (6)
CSharpErrorFactsGenerator (4)
CSharpSyntaxGenerator (6)
CustomCheck (2)
CustomCheck2 (1)
CustomPolicyProvider (1)
DesignSurface (2)
Diagnostics.EFCore.FunctionalTests (7)
dotnet-dev-certs (15)
dotnet-getdocument (7)
dotnet-openapi (6)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (6)
dotnet-svcutil.xmlserializer (9)
dotnet-svcutil-lib (202)
dotnet-svcutil-lib.Tests (4)
dotnet-user-jwts (14)
dotnet-user-secrets (6)
ErrorCustomCheck (3)
FormatterWebSite (4)
GetDocument.Insider (7)
HeaderPropagationSample (1)
HtmlGenerationWebSite (8)
http2cat (1)
IdeCoreBenchmarks (2)
Identity.DefaultUI.WebSite (6)
IIS.Common.TestLib (2)
IIS.FunctionalTests (10)
IIS.LongTests (5)
IIS.NewHandler.FunctionalTests (5)
IIS.NewShim.FunctionalTests (5)
IIS.ShadowCopy.Tests (3)
IIS.Tests (1)
IISExpress.FunctionalTests (13)
illink (73)
ILLink.RoslynAnalyzer (4)
Infrastructure.Common (5)
InMemory.FunctionalTests (39)
HttpsConnectionMiddlewareTests.cs (6)
806var streams = new List<SslStream>();
941ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, },
974ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, },
992ApplicationProtocols = new(),
1007ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, },
1400ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http11, SslApplicationProtocol.Http2 },
InProcessWebSite (1)
IntegrationTestsWebsite (1)
InteractiveHost.UnitTests (1)
Interop.FunctionalTests (14)
InteropClient (4)
IOperationGenerator (3)
JwtBearerSample (1)
KeyManagementSimulator (1)
LocalizationWebsite (11)
Microsoft.Analyzers.Extra (8)
Microsoft.Analyzers.Extra.Tests (7)
Microsoft.Analyzers.Local (1)
Microsoft.Analyzers.Local.Tests (10)
Microsoft.Arcade.Test.Common (8)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Analyzer.Testing (3)
Microsoft.AspNetCore.Analyzers (2)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.App.UnitTests (2)
Microsoft.AspNetCore.Authentication.Abstractions (3)
Microsoft.AspNetCore.Authentication.Certificate (1)
Microsoft.AspNetCore.Authentication.Cookies (3)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Core.Test (7)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (5)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (12)
Microsoft.AspNetCore.Authorization (3)
Microsoft.AspNetCore.Authorization.Test (3)
Microsoft.AspNetCore.BrowserTesting (6)
Microsoft.AspNetCore.Components (28)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Authorization.Tests (6)
Microsoft.AspNetCore.Components.Endpoints (20)
Microsoft.AspNetCore.Components.Endpoints.Tests (63)
Binding\FormDataMapperTests.cs (34)
100var errors = new List<FormDataMappingError>();
138var errors = new List<FormDataMappingError>();
379var errors = new List<FormDataMappingError>();
404var errors = new List<FormDataMappingError>();
459var rented = new List<int[]>();
460var returned = new List<int[]>();
505var rented = new List<int[]>();
506var returned = new List<int[]>();
575var errors = new List<FormDataMappingError>();
608var expected = new List<int> { 0, 11, 12, 13, 0, 15, 16, 17, 18, 19 };
624var errors = new List<FormDataMappingError>();
665var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
673var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
689var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
697var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
705var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
737var expected = new ReadOnlyCollection<int>(new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
753var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
1072var errors = new List<FormDataMappingError>();
1133var errors = new List<FormDataMappingError>();
1192var errors = new List<FormDataMappingError>();
1432var errors = new List<FormDataMappingError>();
1482Children = new List<RecursiveTree>() { expected }
1599var errors = new List<FormDataMappingError>();
1793var errors = new List<FormDataMappingError>();
1854var errors = new List<FormDataMappingError>();
1877var errors = new List<FormDataMappingError>();
1908var errors = new List<FormDataMappingError>();
1936var errors = new List<FormDataMappingError>();
1969var errors = new List<FormDataMappingError>();
1991var errors = new List<FormDataMappingError>();
2014var errors = new List<FormDataMappingError>();
2047var errors = new List<FormDataMappingError>();
2418private readonly List<T> _inner = new();
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Forms.Tests (5)
Microsoft.AspNetCore.Components.QuickGrid (6)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server (12)
Microsoft.AspNetCore.Components.Server.Tests (18)
Microsoft.AspNetCore.Components.Tests (48)
Lifetime\ComponentApplicationStateTest.cs (9)
14var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
32var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
48var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
68var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>())
87var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>())
104var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>())
123var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>())
143var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
Microsoft.AspNetCore.Components.Web (3)
Microsoft.AspNetCore.Components.Web.Tests (9)
Microsoft.AspNetCore.Components.WebAssembly (13)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Test (4)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.CookiePolicy.Test (3)
Microsoft.AspNetCore.Cors (7)
Microsoft.AspNetCore.Cors.Test (9)
CorsPolicyBuilderTests.cs (8)
123Assert.Equal(new List<string>() { "http://example.com", "http://example2.com" }, corsPolicy.Origins);
134Assert.Equal(new List<string>() { "http://www.example.com", "https://example2.com" }, corsPolicy.Origins);
171Assert.Equal(new List<string>() { "*" }, corsPolicy.Origins);
229Assert.Equal(new List<string>() { "PUT", "GET" }, corsPolicy.Methods);
244Assert.Equal(new List<string>() { "*" }, corsPolicy.Methods);
259Assert.Equal(new List<string>() { "example1", "example2" }, corsPolicy.Headers);
274Assert.Equal(new List<string>() { "*" }, corsPolicy.Headers);
288Assert.Equal(new List<string>() { "exposed1", "exposed2" }, corsPolicy.ExposedHeaders);
Microsoft.AspNetCore.DataProtection (9)
Microsoft.AspNetCore.DataProtection.Tests (15)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
Microsoft.AspNetCore.Diagnostics (7)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (5)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
64new List<ILatencyDataExporter> { ex1, ex2 });
92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
122new List<ILatencyDataExporter> { ex1, ex2 },
173new List<ILatencyDataExporter> { ex1 },
Microsoft.AspNetCore.Diagnostics.Tests (20)
Microsoft.AspNetCore.Grpc.JsonTranscoding (14)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
Microsoft.AspNetCore.Grpc.Swagger (10)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderParsing.Tests (4)
Microsoft.AspNetCore.HostFiltering (2)
Microsoft.AspNetCore.HostFiltering.Tests (2)
Microsoft.AspNetCore.Hosting (8)
Microsoft.AspNetCore.Hosting.Tests (9)
Microsoft.AspNetCore.Html.Abstractions (1)
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
Microsoft.AspNetCore.Http (7)
Microsoft.AspNetCore.Http.Abstractions (6)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections (9)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Common (2)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions (16)
Microsoft.AspNetCore.Http.Extensions.Tests (59)
RequestDelegateFactoryTests.cs (25)
88return new List<object[]>
108EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
1323return new List<object[]>
1444return new List<object[]>
1498return new List<object[]>
1535return new List<object?[]>
1716return new List<object?[]>
1887return new List<object?[]>
2168EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2211EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2283EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2378EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2412EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2497EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
2560var options = new RequestDelegateFactoryOptions { EndpointBuilder = CreateEndpointBuilder(new List<object> { customMetadata }) };
2675EndpointBuilder = CreateEndpointBuilder(new List<object>
2697EndpointBuilder = CreateEndpointBuilder(new List<object>
2720EndpointBuilder = CreateEndpointBuilder(new List<object>
2743EndpointBuilder = CreateEndpointBuilder(new List<object>
2766EndpointBuilder = CreateEndpointBuilder(new List<object>
2787EndpointBuilder = CreateEndpointBuilder(new List<object>
2808EndpointBuilder = CreateEndpointBuilder(new List<object>
2871var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() };
3051EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
3094EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.Http.Microbenchmarks (5)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
Microsoft.AspNetCore.Http.Results.Tests (45)
ResultsTests.cs (12)
283public static IEnumerable<object[]> BytesOrFile_ResultHasCorrectValues_Data => new List<object[]>
331public static IEnumerable<object[]> Stream_ResultHasCorrectValues_Data => new List<object[]>
386Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
398Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
448Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
467public static IEnumerable<object[]> ChallengeForbidSignInOut_ResultHasCorrectValues_Data => new List<object[]>
469new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } },
471new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } },
1280var extensions = new List<KeyValuePair<string, object>> { new("test", "value") };
1430var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) };
1436var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") };
1728private static IEnumerable<(Expression<Func<IResult>>, Type)> FactoryMethodsTuples { get; } = new List<(Expression<Func<IResult>>, Type)>
TypedResultsTests.cs (12)
261public static IEnumerable<object[]> BytesOrFile_ResultHasCorrectValues_Data => new List<object[]>
307public static IEnumerable<object[]> PhysicalOrVirtualFile_ResultHasCorrectValues_Data => new List<object[]>
415public static IEnumerable<object[]> Stream_ResultHasCorrectValues_Data => new List<object[]>
434Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
446Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
458Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes);
477public static IEnumerable<object[]> ChallengeForbidSignInOut_ResultHasCorrectValues_Data => new List<object[]>
479new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } },
481new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } },
1096var extensions = new List<KeyValuePair<string, object>> { new("test", "value") };
1217var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) };
1222var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") };
Microsoft.AspNetCore.Http.Tests (9)
Microsoft.AspNetCore.HttpLogging (6)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides (4)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
Microsoft.AspNetCore.Identity.FunctionalTests (5)
Microsoft.AspNetCore.Identity.InMemory.Test (11)
Microsoft.AspNetCore.Identity.Specification.Tests (2)
Microsoft.AspNetCore.Identity.Test (20)
Microsoft.AspNetCore.Identity.UI (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.JsonPatch (7)
Microsoft.AspNetCore.JsonPatch.Tests (75)
IntegrationTests\ListIntegrationTest.cs (26)
21IntegerList = new List<int>() { 1, 2, 3 }
40IntegerList = new List<int>() { 1, 2, 3 }
61IntegerIList = new List<int>() { 1, 2, 3 }
72Assert.Equal(new List<int>() { 4, 1, 2, 3 }, targetObject.SimpleObject.IntegerIList);
81SimpleObjectList = new List<SimpleObject>()
112IntegerList = new List<int>() { 1, 2, 3 }
123Assert.Equal(new List<int>() { 1, 2, 3, 4 }, targetObject.SimpleObject.IntegerList);
132IntegerList = new List<int>() { 1, 2, 3 }
142Assert.Equal(new List<int>() { 1, 2 }, targetObject.IntegerList);
153IntegerList = new List<int>() { 1, 2, 3 }
177IntegerList = new List<int>() { 1, 2, 3 }
188Assert.Equal(new List<int>() { 1, 2 }, targetObject.SimpleObject.IntegerList);
197IntegerList = new List<int>() { 1, 2, 3 }
207Assert.Equal(new List<int>() { 4, 5, 6 }, targetObject.IntegerList);
218IntegerList = new List<int>() { 1, 2, 3 }
229Assert.Equal(new List<int>() { 1, 2, 5 }, targetObject.SimpleObject.IntegerList);
240IntegerList = new List<int>() { 1, 2, 3 }
260IntegerList = new List<int>() { 1, 2, 3 }
270Assert.Equal(new List<int>() { 1, 2, 3, 1 }, targetObject.IntegerList);
279IntegerList = new List<int>() { 1, 2, 3 }
299IntegerList = new List<int>() { 1, 2, 3 }
310Assert.Equal(new List<int>() { 1, 2, 3, 5 }, targetObject.IntegerList);
322SimpleObjectList = new List<SimpleObject>() {
336Assert.Equal(new List<SimpleObject>() { simpleObject2, simpleObject1, simpleObject3 }, targetObject.SimpleObjectList);
351IntegerList = new List<int>() { 1, 2, 3 }
362Assert.Equal(new List<int>() { 2, 3 }, targetObject.SimpleObject.IntegerList);
Internal\ListAdapterTest.cs (38)
53var targetObject = new List<string>() { "James", "Mike" };
64Assert.Equal(new List<string>() { "James", "Mike", "Rob" }, targetObject);
75var targetObject = new List<string>() { "James", "Mike" };
93var targetObject = new List<string>() { "James", "Mike" };
111new List<int>() { },
112new List<int>() { 20 }
115new List<int>() { 5, 10 },
116new List<int>() { 5, 10, 20 }
146var targetObject = new List<string>() { "James", "Mike" };
155Assert.Equal(new List<string>() { "James", "Mike", null }, targetObject);
165var targetObject = new List<SimpleObject>() { sDto };
175Assert.Equal(new List<SimpleObject>() { sDto, iDto }, targetObject);
183var targetObject = new List<int>() { 10, 20 };
201new List<string>() { },
204new List<string>() { "a" }
207new List<string>() { "a", "b" },
210new List<string>() { "a", "b", "c" }
213new List<string>() { "a", "b" },
216new List<string>() { "c", "a", "b" }
219new List<string>() { "a", "b" },
222new List<string>() { "a", "c", "b" }
256new List<SimpleObject>() { },
259new List<SimpleObject>() { sDto1 }
262new List<SimpleObject>() { sDto1, sDto2 },
265new List<SimpleObject>() { sDto1, sDto2, sDto3 }
268new List<SimpleObject>() { sDto1, sDto2 },
271new List<SimpleObject>() { sDto3, sDto1, sDto2 }
274new List<SimpleObject>() { sDto1, sDto2 },
277new List<SimpleObject>() { sDto1, sDto3, sDto2 }
383var targetObject = new List<int>() { 10, 20 };
399var targetObject = new List<int>() { 10, 20 };
408Assert.Equal(new List<int>() { 10, 30 }, targetObject);
419new List<int>() { 30, 20 }
423new List<int>() { 10, 30 }
435var targetObject = new List<int>() { 10, 20 };
452var targetObject = new List<int>() { 10, 20 };
468var targetObject = new List<int>() { 10, 20 };
485var targetObject = new List<int>() { 10, 20 };
Microsoft.AspNetCore.Localization (7)
Microsoft.AspNetCore.Localization.Routing.Tests (4)
Microsoft.AspNetCore.Localization.Tests (31)
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (3)
Microsoft.AspNetCore.Mvc.Abstractions (9)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (26)
Microsoft.AspNetCore.Mvc.Core (77)
Microsoft.AspNetCore.Mvc.Core.Test (296)
ConsumesAttributeTests.cs (28)
88new List<FilterDescriptor>() { new FilterDescriptor(constraint, FilterScope.Action) }
92context.Candidates = new List<ActionSelectorCandidate>()
112new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) }
119new List<FilterDescriptor>() { new FilterDescriptor(constraint2.Object, FilterScope.Action) }
126context.Candidates = new List<ActionSelectorCandidate>()
150new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) }
157new List<FilterDescriptor>() { new FilterDescriptor(constraint2.Object, FilterScope.Action) }
164context.Candidates = new List<ActionSelectorCandidate>()
187new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) }
194new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) }
200context.Candidates = new List<ActionSelectorCandidate>()
204new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()),
228new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) }
235new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) }
239context.Candidates = new List<ActionSelectorCandidate>()
243new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()),
266new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) }
273new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) }
279context.Candidates = new List<ActionSelectorCandidate>()
305ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter },
307new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) }
314new List<IValueProviderFactory>());
335ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter },
337new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) }
344new List<IValueProviderFactory>());
364ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter },
366new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) }
372new List<IValueProviderFactory>());
Controllers\ControllerBinderDelegateProviderTest.cs (14)
649Assert.Equal(new List<string> { "goodbye" }, controller.CollectionProperty);
670var expected = new List<string> { "Hello", "World", "!!" };
921new List<string> { "goodbye" }
934new List<string> { "hello", "world" },
1001{ nameof(TestController.CollectionProperty), new List<string> { "hello", "world" } },
1003{ nameof(TestController.NullCollectionProperty), new List<string> { "hello", "world" } },
1057Assert.Equal(new List<string> { "hello", "world" }, controller.CollectionProperty);
1082new List<ParameterDescriptor>()
1099new List<ParameterDescriptor>()
1130BoundProperties = new List<ParameterDescriptor>(),
1207BoundProperties = new List<ParameterDescriptor>(),
1275BoundProperties = new List<ParameterDescriptor>(),
1276Parameters = new List<ParameterDescriptor>()
1369public ICollection<string> CollectionProperty { get; } = new List<string> { "goodbye" };
Infrastructure\ControllerActionInvokerTest.cs (27)
35FilterDescriptors = new List<FilterDescriptor>(),
36Parameters = new List<ParameterDescriptor>(),
37BoundProperties = new List<ParameterDescriptor>(),
76FilterDescriptors = new List<FilterDescriptor>(),
77Parameters = new List<ParameterDescriptor>(),
78BoundProperties = new List<ParameterDescriptor>(),
107FilterDescriptors = new List<FilterDescriptor>(),
108Parameters = new List<ParameterDescriptor>(),
109BoundProperties = new List<ParameterDescriptor>(),
150FilterDescriptors = new List<FilterDescriptor>(),
151Parameters = new List<ParameterDescriptor>(),
152BoundProperties = new List<ParameterDescriptor>(),
211var valueProviderFactories = new List<IValueProviderFactory>();
242var valueProviderFactories = new List<IValueProviderFactory>();
1386BoundProperties = new List<ParameterDescriptor>(),
1391Parameters = new List<ParameterDescriptor>
1400FilterDescriptors = new List<FilterDescriptor>()
1558FilterDescriptors = new List<FilterDescriptor>(),
1559Parameters = new List<ParameterDescriptor>(),
1560BoundProperties = new List<ParameterDescriptor>(),
1608FilterDescriptors = new List<FilterDescriptor>(),
1609Parameters = new List<ParameterDescriptor>(),
1610BoundProperties = new List<ParameterDescriptor>(),
1650FilterDescriptors = new List<FilterDescriptor>(),
1651Parameters = new List<ParameterDescriptor>(),
1652BoundProperties = new List<ParameterDescriptor>(),
1690valueProviderFactories = new List<IValueProviderFactory>();
ModelBinding\Metadata\DefaultModelMetadataTest.cs (20)
512new List<string> { "Property1", "Property2", "Property3", "Property4", },
513new List<string> { "Property1", "Property2", "Property3", "Property4", }
516new List<string> { "Property4", "Property3", "Property2", "Property1", },
517new List<string> { "Property4", "Property3", "Property2", "Property1", }
520new List<string> { "Delta", "Bravo", "Charlie", "Alpha", },
521new List<string> { "Delta", "Bravo", "Charlie", "Alpha", }
524new List<string> { "John", "Jonathan", "Jon", "Joan", },
525new List<string> { "John", "Jonathan", "Jon", "Joan", }
541var expectedProperties = new List<DefaultModelMetadata>();
580new List<KeyValuePair<string, int>>
587new List<string> { "Property1", "Property2", "Property3", "Property4", }
591new List<KeyValuePair<string, int>>
598new List<string> { "Property4", "Property3", "Property2", "Property1", }
602new List<KeyValuePair<string, int>>
609new List<string> { "Property4", "Property3", "Property2", "Property1", }
612new List<KeyValuePair<string, int>>
619new List<string> { "Charlie", "Bravo", "Delta", "Alpha", }
623new List<KeyValuePair<string, int>>
630new List<string> { "John", "Jonathan", "Jon", "Joan", }
646var expectedProperties = new List<DefaultModelMetadata>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
Microsoft.AspNetCore.Mvc.Cors.Test (8)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (15)
DataAnnotationsMetadataProviderTest.cs (14)
818var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>>
867{ typeof(EmptyEnum), new List<KeyValuePair<EnumGroupAndName, string>>() },
868{ typeof(EmptyEnum?), new List<KeyValuePair<EnumGroupAndName, string>>() },
871new List<KeyValuePair<EnumGroupAndName, string>>
883new List<KeyValuePair<EnumGroupAndName, string>>
897new List<KeyValuePair<EnumGroupAndName, string>>
910new List<KeyValuePair<EnumGroupAndName, string>>
923new List<KeyValuePair<EnumGroupAndName, string>>
934new List<KeyValuePair<EnumGroupAndName, string>>
945new List<KeyValuePair<EnumGroupAndName, string>>
957new List<KeyValuePair<EnumGroupAndName, string>>
998var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>>
1448attributes: new List<ValidationAttribute>
1463var expected = new List<object>
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (40)
Microsoft.AspNetCore.Mvc.IntegrationTests (36)
Microsoft.AspNetCore.Mvc.Localization.Test (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (5)
Microsoft.AspNetCore.Mvc.Razor (10)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (13)
Microsoft.AspNetCore.Mvc.RazorPages.Test (57)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (12)
22ActionConstraints = new List<IActionConstraintMetadata>(),
24EndpointMetadata = new List<object>(),
25FilterDescriptors = new List<FilterDescriptor>(),
51ActionConstraints = new List<IActionConstraintMetadata>(),
53FilterDescriptors = new List<FilterDescriptor>(),
102ActionConstraints = new List<IActionConstraintMetadata>(),
104FilterDescriptors = new List<FilterDescriptor>(),
144ActionConstraints = new List<IActionConstraintMetadata>(),
146FilterDescriptors = new List<FilterDescriptor>(),
405ActionConstraints = new List<IActionConstraintMetadata>(),
407EndpointMetadata = new List<object> { metadata3, metadata4, },
408FilterDescriptors = new List<FilterDescriptor>(),
Infrastructure\PageActionInvokerTest.cs (18)
97var valueProviderFactories = new List<IValueProviderFactory>
130var valueProviderFactories = new List<IValueProviderFactory>
1447HandlerMethods = new List<HandlerMethodDescriptor>(),
1451BoundProperties = new List<ParameterDescriptor>(),
1454var handlers = new List<PageHandlerExecutorDelegate>();
1461Parameters = new List<HandlerParameterDescriptor>(),
1470Parameters = new List<HandlerParameterDescriptor>(),
1509ValueProviderFactories = valueProviderFactories?.ToList() ?? new List<IValueProviderFactory>(),
1510ViewStartFactories = new List<Func<IRazorPage>>(),
1586BoundProperties = new List<ParameterDescriptor>(),
1594Parameters = new List<HandlerParameterDescriptor>(),
1600Parameters = new List<HandlerParameterDescriptor>(),
1614BoundProperties = new List<ParameterDescriptor>(),
1622Parameters = new List<HandlerParameterDescriptor>(),
1628Parameters = new List<HandlerParameterDescriptor>(),
1642BoundProperties = new List<ParameterDescriptor>(),
1650Parameters = new List<HandlerParameterDescriptor>(),
1656Parameters = new List<HandlerParameterDescriptor>(),
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (25)
Microsoft.AspNetCore.Mvc.Test (24)
Microsoft.AspNetCore.Mvc.TestDiagnosticListener (1)
Microsoft.AspNetCore.Mvc.Testing (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (89)
Buffers\ViewBufferTextWriterTest.cs (3)
65var expected = new List<object> { "False", newLine, "1.1", newLine, "3", newLine };
84var expected = new List<object> { "False", newLine, "1.1", newLine, "3", newLine };
162var pages = new List<ViewBufferPage>();
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
Microsoft.AspNetCore.OpenApi (5)
Microsoft.AspNetCore.OpenApi.Tests (8)
Transformers\SchemaTransformerTests.cs (5)
447builder.MapGet("/list", () => new List<int> { 1, 2, 3, 4 });
524builder.MapGet("/list-of-todo", () => new List<Todo> { new Todo(1, "Item1", false, DateTime.Now) });
525builder.MapGet("/list-of-int", () => new List<int> { 1, 2, 3, 4 });
560builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } });
642builder.MapGet("/list", () => new List<PolymorphicContainer>());
Microsoft.AspNetCore.OutputCaching (8)
Microsoft.AspNetCore.OutputCaching.Tests (7)
Microsoft.AspNetCore.Owin.Tests (3)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.RateLimiting.Tests (5)
Microsoft.AspNetCore.Razor (3)
Microsoft.AspNetCore.Razor.Runtime (3)
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCaching.Tests (8)
Microsoft.AspNetCore.Rewrite (10)
Microsoft.AspNetCore.Rewrite.Tests (20)
Microsoft.AspNetCore.Routing (70)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Routing.FunctionalTests (12)
MinimalFormTests.cs (12)
55var nameValueCollection = new List<KeyValuePair<string, string>>
115var nameValueCollection = new List<KeyValuePair<string, string>>
161var nameValueCollection = new List<KeyValuePair<string, string>>
200var nameValueCollection = new List<KeyValuePair<string, string>>
277var nameValueCollection = new List<KeyValuePair<string, string>>
324var nameValueCollection = new List<KeyValuePair<string, string>>
420var nameValueCollection = new List<KeyValuePair<string, string>>
476var nameValueCollection = new List<KeyValuePair<string, string>>
535var nameValueCollection = new List<KeyValuePair<string, string>>
587var nameValueCollection = new List<KeyValuePair<string, string>>
639var nameValueCollection = new List<KeyValuePair<string, string>>
688var nameValueCollection = new List<KeyValuePair<string, string>>
Microsoft.AspNetCore.Routing.Microbenchmarks (11)
Microsoft.AspNetCore.Routing.Tests (122)
DefaultLinkGeneratorProcessTemplateTest.cs (4)
152values: new RouteValueDictionary(new { color = new List<string> { "red", "green", "blue" } }),
175values: new RouteValueDictionary(new { items = new List<int> { 10, 20, 30 } }),
198values: new RouteValueDictionary(new { color = new List<string> { } }),
221values: new RouteValueDictionary(new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" }),
RouteTest.cs (4)
686new { color = new List<string> { "red", "green", "blue" } },
704new { items = new List<int> { 10, 20, 30 } },
722new { color = new List<string> { } },
740new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" },
Template\TemplateParserTests.cs (18)
16var expected = new RouteTemplate(template, new List<TemplateSegment>());
33var expected = new RouteTemplate(template, new List<TemplateSegment>());
52var expected = new RouteTemplate(template, new List<TemplateSegment>());
71var expected = new RouteTemplate(template, new List<TemplateSegment>());
92var expected = new RouteTemplate(template, new List<TemplateSegment>());
131var expected = new RouteTemplate(template, new List<TemplateSegment>());
154var expected = new RouteTemplate(template, new List<TemplateSegment>());
177var expected = new RouteTemplate(template, new List<TemplateSegment>());
206var expected = new RouteTemplate(template, new List<TemplateSegment>());
230var expected = new RouteTemplate(template, new List<TemplateSegment>());
260var expected = new RouteTemplate(template, new List<TemplateSegment>());
290var expected = new RouteTemplate(template, new List<TemplateSegment>());
328var expected = new RouteTemplate(template, new List<TemplateSegment>());
366var expected = new RouteTemplate(template, new List<TemplateSegment>());
403var expected = new RouteTemplate(template, new List<TemplateSegment>());
440var expected = new RouteTemplate(template, new List<TemplateSegment>());
474var expected = new RouteTemplate(template, new List<TemplateSegment>());
482inlineConstraints: new List<InlineConstraint> { c }));
Microsoft.AspNetCore.Server.HttpSys (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.Server.IntegrationTesting (7)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (4)
Microsoft.AspNetCore.Server.Kestrel.Core (34)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (45)
KestrelServerTests.cs (20)
322new List<IConnectionListenerFactory>(),
333new List<IConnectionListenerFactory>() { new ThrowingTransportFactory(), new MockTransportFactory() },
347new List<IConnectionListenerFactory> { new NonBindableTransportFactory() },
367new List<IConnectionListenerFactory> { transportFactory, new NonBindableTransportFactory() },
388new List<IConnectionListenerFactory>(),
389new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() });
412new List<IConnectionListenerFactory>(),
413new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() });
438new List<IConnectionListenerFactory>() { mockTransportFactory },
439new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory });
465new List<IConnectionListenerFactory>() { mockTransportFactory },
466new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory });
496new List<IConnectionListenerFactory>() { mockTransportFactory },
497new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory });
524new List<IConnectionListenerFactory>() { mockTransportFactory },
525new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory });
803var mockTransports = new List<Mock<IConnectionListener>>();
941var mockTransports = new List<Mock<IConnectionListener>>();
990public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>();
1042public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (5)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (17)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (17)
Microsoft.AspNetCore.SignalR.Client.Core (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (6)
Microsoft.AspNetCore.SignalR.Client.Tests (23)
Microsoft.AspNetCore.SignalR.Common (2)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Core (7)
Microsoft.AspNetCore.SignalR.Microbenchmarks (14)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (3)
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (17)
DefaultHubMessageSerializerTests.cs (10)
24var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() });
29var allBytes = new List<byte>();
44var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() });
46var serializer = new DefaultHubMessageSerializer(resolver, new List<string>() { "json" }, new List<string>() { "messagepack" });
51Assert.Equal(new List<byte>() { 0x0D,
71new List<IHubProtocol>() { new MessagePackHubProtocol() },
83new List<IHubProtocol>() { new MessagePackHubProtocol(), new JsonHubProtocol() },
100new List<IHubProtocol>() { new MessagePackHubProtocol(), new TestHubProtocol() },
112new List<IHubProtocol>(),
Microsoft.AspNetCore.SignalR.Tests (28)
DefaultHubLifetimeManagerTests.cs (5)
65var sendTask = manager.SendAllExceptAsync("Hello", new object[] { "World" }, new List<string> { connection1.ConnectionId }, cts.Token).DefaultTimeout();
111var sendTask = manager.SendConnectionsAsync(new List<string> { connection1.ConnectionId }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout();
161var sendTask = manager.SendGroupExceptAsync("group", "Hello", new object[] { "World" }, new List<string> { connection1.ConnectionId }, cts.Token).DefaultTimeout();
186var sendTask = manager.SendGroupsAsync(new List<string> { "group" }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout();
241var sendTask = manager.SendUsersAsync(new List<string> { "user1", "user2" }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests.Utils (8)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.Tests (7)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (6)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Authentication.WebAssembly.Msal (3)
Microsoft.Build (189)
Microsoft.Build.BuildCheck.UnitTests (31)
EndToEndTests.cs (14)
539PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") });
575PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", BC0101Severity) });
629PrepareSampleProjectsAndConfig(true, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", BC0101Severity) });
664new List<(string, string)>() { ("X01234", severity) },
665new List<(string, (string, string))>
689PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") });
733customConfigData = new List<(string, (string, string))>()
742new List<(string, string)>() { ("BC0103", "error") },
770customConfigData = new List<(string, (string, string))>()
778new List<(string, string)>() { ("BC0103", "error") },
803new List<(string, string)>() { ("BC0103", "warning") });
875new List<(string, string)>() { (ruleId, severity) },
904new List<(string, string)>() { (ruleId, "warning") },
926PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") });
Microsoft.Build.CommandLine.UnitTests (49)
CommandLineSwitches_Tests.cs (9)
603MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/targets:targets.txt" }, switches);
613MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/targets /targets" }, switches);
691MSBuildApp.GatherCommandLineSwitches(new List<string> { "/graph", "/graph:true; NoBuild ;; ;", "/graph:foo" }, switches);
703MSBuildApp.GatherCommandLineSwitches(new List<string> { "/graph" }, switches);
715MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/irc", "/irc:a;b", "/irc:c;d" }, switches);
727MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/orc:a" }, switches);
739MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/orc:a", "/orc:b" }, switches);
1390MSBuildApp.GatherCommandLineSwitches(new List<string>() { "validProject.csproj", "%ENVIRONMENTVARIABLE%" }, commandLineSwitches, fullCommandLine);
1395MSBuildApp.GatherCommandLineSwitches(new List<string>() { "%ENVIRONMENTVARIABLE%", "validProject.csproj" }, commandLineSwitches, fullCommandLine);
Microsoft.Build.Engine.OM.UnitTests (102)
Construction\ConstructionEditing_Tests.cs (6)
2385Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 });
2408Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item2, item1 });
2431Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item2, item1 });
2454Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 });
2477Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 });
2501Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 });
Definition\Project_Tests.cs (68)
1725List<string> filePaths = new List<string>();
2076bool result = project.Build(new string[] { "nonexistent" }, new List<ILogger>() { logger });
2293List<ProjectItem> list = new List<ProjectItem>() { project.GetItems("i").FirstOrDefault(), project.GetItems("j").FirstOrDefault() };
2366project.RemoveItems(new List<ProjectItem>() { null });
2406project.RemoveItems(new List<ProjectItem>() { item });
2407project.RemoveItems(new List<ProjectItem>() { item });
2437List<ILogger> loggers = new List<ILogger>();
2461List<ILogger> loggers = new List<ILogger>();
2531List<ILogger> loggers = new List<ILogger>();
2671var expected = new ProvenanceResultTupleList();
2719var expected = new ProvenanceResultTupleList();
2737var expected = new ProvenanceResultTupleList
2757var expected = new ProvenanceResultTupleList();
2773var expected = new ProvenanceResultTupleList
2780AssertProvenanceResult(new ProvenanceResultTupleList(), project, "a/2.foo");
2796var expected = new ProvenanceResultTupleList
2817var expected = new ProvenanceResultTupleList
2824expected = new ProvenanceResultTupleList
2836var expected = new ProvenanceResultTupleList();
2871var expected = new ProvenanceResultTupleList
2904var expected = new ProvenanceResultTupleList
2923var expected = new ProvenanceResultTupleList();
2941var expected = new ProvenanceResultTupleList
2964var expected = new ProvenanceResultTupleList
2971AssertProvenanceResult(new ProvenanceResultTupleList(), project, "1.foo", "NotExistent");
2989new ProvenanceResultTupleList()
3009new ProvenanceResultTupleList()
3026new ProvenanceResultTupleList()
3057new ProvenanceResultTupleList
3091var expected = new ProvenanceResultTupleList
3117var expected = new ProvenanceResultTupleList
3143var expected = new ProvenanceResultTupleList
3171var expected = new ProvenanceResultTupleList
3191var expected = new ProvenanceResultTupleList();
3207var expected = new ProvenanceResultTupleList();
3225var expected = new ProvenanceResultTupleList();
3242var expected1Foo = new ProvenanceResultTupleList
3256var expected2Foo = new ProvenanceResultTupleList
3262AssertProvenanceResult(new ProvenanceResultTupleList(), project.GetItemProvenance(@"../x/d13/../x/d12/d23/../2.foo"));
3286var expectedProvenance = new ProvenanceResultTupleList
3310var expected = new ProvenanceResultTupleList();
3332var expected = new ProvenanceResultTupleList();
3348var expected = new ProvenanceResultTupleList
3377new ProvenanceResultTupleList
3389new ProvenanceResultTupleList()
3396new ProvenanceResultTupleList
3408new ProvenanceResultTupleList()
3415new ProvenanceResultTupleList()
3422new ProvenanceResultTupleList()
3429new ProvenanceResultTupleList
3441new ProvenanceResultTupleList()
3448new ProvenanceResultTupleList()
3455new ProvenanceResultTupleList
3467new ProvenanceResultTupleList
3479new ProvenanceResultTupleList
3514var expected = new ProvenanceResultTupleList
3544var expected = new ProvenanceResultTupleList
3581? new ProvenanceResultTupleList
3585: new ProvenanceResultTupleList();
3601var expected = new GlobResultList();
3618var expected = new GlobResultList();
3636var expected = new GlobResultList();
3656var expected = new GlobResultList
3679var expected = new GlobResultList
3796var expected = new GlobResultList
3802AssertGlobResult(new GlobResultList(), project, "NotExistent");
3819var expected = new GlobResultList
3847var expected = new GlobResultList
Microsoft.Build.Engine.UnitTests (256)
BackEnd\CacheAggregator_Tests.cs (11)
82var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
103var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
108var buildResult2 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
132var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
154var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
162var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null));
198var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
217var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null));
219var buildResult12 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.Invalid, null));
229var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null));
231var buildResult22 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.Invalid, null));
Construction\SolutionProjectGenerator_Tests.cs (7)
82instances[0].Build(targets: null, new List<ILogger> { logger }).ShouldBeTrue();
2353ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "One" });
2357instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Two", "Three", "Four" });
2363instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Build" });
2367instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Five", "Rebuild" });
2372instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "My_Project:Six" });
2618projectInstance.Build(targetsToBuild, new List<ILogger> { mockLogger })
Graph\ProjectGraph_Tests.cs (6)
308var projectsInCycle = new List<string> { entryProject.Path, proj3.Path, proj2.Path, entryProject.Path };
342var projectsInCycle = new List<string> { proj2.Path, proj3.Path, proj7.Path, proj6.Path, proj2.Path };
1115IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" });
1156IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" });
1190IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" });
1362IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" });
Microsoft.Build.Framework (20)
Microsoft.Build.Framework.UnitTests (5)
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.Build.Tasks.Core (174)
Microsoft.Build.Tasks.UnitTests (31)
Microsoft.Build.UnitTests.Shared (34)
Microsoft.Build.Utilities.Core (38)
Microsoft.Build.Utilities.UnitTests (5)
Microsoft.Cci.Extensions (14)
Microsoft.CodeAnalysis (40)
Microsoft.CodeAnalysis.CodeStyle (22)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
89var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.CSharp (29)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (275)
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (9)
58=> CombineWithReferenceTypeData((new[] { "class", "struct", "interface", "enum", "abstract class" }).Select(kind => new List<object>() { kind }));
64var predefinedTypes = new List<string>() { "string", "String", "System.String" };
73yield return new List<object>() { type1 + suffix, type2 + suffix };
496}).Select(tuple => new List<object>() { tuple }));
535=> CombineWithReferenceTypeData((new[] { "class", "interface", "abstract class" }).Select(kind => new List<object>() { kind }));
584}).Select(tuple => new List<object>() { tuple }));
631}).Select(tuple => new List<object>() { tuple }));
876var predefinedTypes = new List<(string vbType, string csType)>
2019var expectedFilters = new List<CompletionFilter>()
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Features (32)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (86)
Semantics\BindingTests.cs (10)
778", assemblyName: "DerivedAssembly1", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics();
791", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() })
817", assemblyName: "DerivedAssembly2", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics();
830", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() })
856", assemblyName: "DerivedAssembly3", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics();
867}", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() })
1465}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 })
1497}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 })
1522}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 })
1558}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 })
Semantics\SpanStackSafetyTests.cs (8)
1929references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
1946references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
1963references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
1980references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
2007references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
2024references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
2048references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
2065references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (107)
Symbols\Source\MethodTests.cs (6)
758var comp2 = CreateCompilationWithMscorlib461(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2");
764var comp = CreateCompilationWithMscorlib461(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3");
972var list = new List<Symbol>();
1047var comp2 = CreateCompilation(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2");
1053var comp = CreateCompilation(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3");
1081var list = new List<Symbol>();
Symbols\SymbolErrorTests.cs (67)
5494var comp = CreateCompilation(text, new List<MetadataReference> { ref1, ref2 });
5516comp = CreateCompilation(new SyntaxTree[] { Parse(text, "goo.cs") }, new List<MetadataReference> { ref1 });
5552var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, new List<MetadataReference> { ref1, ref2 },
5588new List<MetadataReference>()
5627new List<MetadataReference>()
5672new List<MetadataReference>()
5686new List<MetadataReference>()
5734new List<MetadataReference>()
5747new List<MetadataReference>()
5793new List<MetadataReference>()
5807new List<MetadataReference>()
5855new List<MetadataReference>()
5868new List<MetadataReference>()
5914new List<MetadataReference>()
5926new List<MetadataReference>()
5971new List<MetadataReference>()
5984new List<MetadataReference>()
6030new List<MetadataReference>()
6043new List<MetadataReference>()
6089new List<MetadataReference>()
6102new List<MetadataReference>()
6136new List<MetadataReference>()
6172new List<MetadataReference>()
6208new List<MetadataReference>()
6244new List<MetadataReference>()
6287new List<MetadataReference>()
6300new List<MetadataReference>()
6347new List<MetadataReference>()
6361new List<MetadataReference>()
6409new List<MetadataReference>()
6422new List<MetadataReference>()
6469new List<MetadataReference>()
6483new List<MetadataReference>()
6534new List<MetadataReference>()
6547new List<MetadataReference>()
6597new List<MetadataReference>()
6610new List<MetadataReference>()
6660new List<MetadataReference>()
6677new List<MetadataReference>()
6731new List<MetadataReference>()
6744new List<MetadataReference>()
6794new List<MetadataReference>()
6810new List<MetadataReference>()
6863new List<MetadataReference>()
6880new List<MetadataReference>()
6928new List<MetadataReference>()
6945new List<MetadataReference>()
6964new List<MetadataReference>()
7013new List<MetadataReference>()
7027new List<MetadataReference>()
7043new List<MetadataReference>()
7088new List<MetadataReference>()
7143new List<MetadataReference>()
7232new List<MetadataReference>()
7307new List<MetadataReference>()
7320new List<MetadataReference>()
7330new List<MetadataReference>()
7339new List<MetadataReference>()
7359new List<MetadataReference>()
7372new List<MetadataReference>()
7386new List<MetadataReference>()
7400new List<MetadataReference>()
7410new List<MetadataReference>()
14838new List<MetadataReference> { reference },
17637var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 });
17675var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 });
17918var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
LexicalAndXml\XmlDocCommentTests.cs (11)
1678VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1570, true) });
1695VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1570, true) });
2243VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1035, false) });
2368VerifyDiagnostics(trivias[0], new List<TestError>() { new TestError(1570, true) });
2393VerifyDiagnostics(xmlText, new List<TestError>() { new TestError(1570, true) });
2423VerifyDiagnostics(xmlText, new List<TestError>() { new TestError(1570, true) });
2501VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) });
2526VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) });
2696VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>
2722VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>
2750VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (18)
CSharpTestBase.cs (13)
1582synList = new List<SyntaxNode>();
1708var nodeList = new List<TNode>();
2292references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp },
2299references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp, reference.EmitToImageReference() },
2311references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
2326references: new List<MetadataReference>() { reference.EmitToImageReference() },
2337references: new List<MetadataReference>() { reference.EmitToImageReference() },
2348references: new List<MetadataReference>() { reference.EmitToImageReference() },
2365references: new List<MetadataReference>() { reference.EmitToImageReference() },
2383references: new List<MetadataReference>() { reference.EmitToImageReference() },
2613return new List<object[]>()
2625return new List<object[]>()
2637return new List<object[]>()
Microsoft.CodeAnalysis.CSharp.Workspaces (33)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (15)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (44)
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Scripting (9)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (48)
Microsoft.CodeAnalysis.UnitTests (29)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (2)
294List<T> objects = new List<T>() { CreateT(1), CreateT(2), CreateT(3), CreateT(4), CreateT(5), CreateT(6) };
328List<T> objects = new List<T>() { CreateT(1), CreateT(2), CreateT(3), CreateT(4), CreateT(5), CreateT(6) };
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (47)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
89var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (16)
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
ExtensionOrdererTests.cs (11)
26var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e };
43var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e };
60var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e };
77var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e };
94var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e };
109var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c };
124var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c };
143var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f, g };
162var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f, g };
180var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f };
198var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f };
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.CSharp (30)
Microsoft.Data.Analysis (36)
Microsoft.Data.Analysis.Interactive (6)
Microsoft.Data.Analysis.Interactive.Tests (1)
Microsoft.Data.Analysis.Tests (21)
DataFrameTests.cs (14)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 };
349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 };
350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 };
1091df.Append(new List<object> { 5, true }, inPlace: true);
1096DataFrame ret = df.Append(new List<object> { 5, true });
1101df.Append(new List<object> { 100 }, inPlace: true);
1106ret = df.Append(new List<object> { 100 }, inPlace: false);
1111df.Append(new List<object> { null, null }, inPlace: true);
1115ret = df.Append(new List<object> { null, null }, inPlace: false);
1171Assert.Throws<FormatException>(() => df.Append(new List<object> { 5, "str" }, inPlace: true));
1173Assert.Throws<ArgumentException>(() => df.Append(new List<object> { 5, true, true }, inPlace: true));
1199df.Append(new List<object> { "", true }, inPlace: true);
1207df.Append(new List<object> { 1, true, "" }, inPlace: true);
1213df.Append(new List<object> { 1, true, null }, inPlace: true);
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.AsmDiff (6)
Microsoft.DotNet.Build.Tasks.Feed (6)
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (38)
Microsoft.DotNet.Build.Tasks.Workloads (21)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.JobSender (2)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (3)
Microsoft.DotNet.NuGetRepack.Tests (5)
Microsoft.DotNet.Open.Api.Tools.Tests (5)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.PackageTesting.Tests (17)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.SignCheck (5)
Microsoft.DotNet.SignCheckLibrary (13)
Microsoft.DotNet.SignTool (9)
Microsoft.DotNet.SignTool.Tests (140)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
Microsoft.DotNet.VersionTools (7)
Microsoft.DotNet.VersionTools.Tests (3)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XliffTasks.Tests (1)
Microsoft.DotNet.XUnitAssert.Tests (131)
AsyncCollectionAssertsTests.cs (31)
60 var indices = new List<int>();
112 var indices = new List<int>();
125 var list = new List<int>().ToAsyncEnumerable();
135 var list = new List<int>().ToAsyncEnumerable();
157 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
168 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
196 var list = new List<int>().ToAsyncEnumerable();
206 var list = new List<int>().ToAsyncEnumerable();
228 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
247 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
289 var list = new List<object?> { 16, null, "Hi there" }.ToAsyncEnumerable();
297 var list = new List<int> { 42 }.ToAsyncEnumerable();
305 var list = new List<int> { 41, 43 }.ToAsyncEnumerable();
321 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable();
341 var list = new List<int> { 42 }.ToAsyncEnumerable();
399 var list = new List<object?> { 16, "Hi there", null }.ToAsyncEnumerable();
407 var list = new List<int> { 42, 42 }.ToAsyncEnumerable();
423 var list = new List<string?> { "a", null, "b", null, "c", "d" }.ToAsyncEnumerable();
473 var list = new List<object?> { 16, "Hi there" }.ToAsyncEnumerable();
481 var list = new List<int> { 42 }.ToAsyncEnumerable();
498 var list = new List<int>().ToAsyncEnumerable();
506 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable();
526 var list = new List<int> { 42 }.ToAsyncEnumerable();
584 var list = new List<int>().ToAsyncEnumerable();
592 var list = new List<int> { 42 }.ToAsyncEnumerable();
837 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) };
838 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) };
996 var expected = new List<EnumerableItem> { new(1), new(3) };
997 var actual = new List<EnumerableItem> { new(0), new(2) }.ToAsyncEnumerable();
1051 var list = new List<int>().ToAsyncEnumerable();
1065 var list = new List<int> { 42 }.ToAsyncEnumerable();
CollectionAssertsTests.cs (55)
58 var indices = new List<int>();
110 var indices = new List<int>();
123 var list = new List<int>();
133 var list = new List<int>();
155 var list = new List<int> { 42, 2112 };
167 var list = new List<int> { 42, 2112 };
196 var list = new List<int>();
206 var list = new List<int>();
228 var list = new List<int> { 42, 2112 };
247 var list = new List<int> { 42, 2112 };
289 var list = new List<object?> { 16, null, "Hi there" };
297 var list = new List<int> { 42 };
305 var list = new List<int> { 41, 43 };
321 var list = new List<object?> { null, 16, "Hi there" };
359 var list = new List<int> { 42 };
433 var list = new List<object?> { 16, "Hi there", null };
441 var list = new List<int> { 42, 42 };
457 var list = new List<string?> { "a", null, "b", null, "c", "d" };
507 var list = new List<object?> { 16, "Hi there" };
515 var list = new List<int> { 42 };
532 var list = new List<int>();
540 var list = new List<object?> { null, 16, "Hi there" };
596 var list = new List<int> { 42 };
662 var list = new List<int>();
670 var list = new List<int> { 42 };
1078 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) };
1079 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) };
1208 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) };
1209 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) };
1342 ["toAddresses"] = new List<string> { "test1@example.com" },
1343 ["ccAddresses"] = new List<string> { "test2@example.com" },
1360 ["toAddresses"] = new List<string> { "test1@example.com" },
1361 ["ccAddresses"] = new List<string> { "test2@example.com" },
1425 ["key"] = new List<Dictionary<string, object>>()
1429 ["key"] = new List<object> { "value" }
1438 ["key"] = new List<Dictionary<string, object>>()
1442 ["key"] = new List<object> { "value" }
1458 ["key"] = new List<Dictionary<string, object>>()
1462 ["key"] = new List<object> { "value1" }
1471 ["key"] = new List<Dictionary<string, object>>()
1475 ["key"] = new List<object> { "value2" }
1614 var list = new List<int>();
1628 var list = new List<int> { 42 };
2009 ["toAddresses"] = new List<string> { "test1@example.com" },
2010 ["ccAddresses"] = new List<string> { "test2@example.com" },
2035 ["toAddresses"] = new List<string> { "test1@example.com" },
2036 ["ccAddresses"] = new List<string> { "test2@example.com" },
2092 ["key"] = new List<Dictionary<string, object>>()
2096 ["key"] = new List<object> { "value" }
2105 ["key"] = new List<Dictionary<string, object>>()
2109 ["key"] = new List<object> { "value" }
2133 ["key"] = new List<Dictionary<string, object>>()
2137 ["key"] = new List<object> { "value1" }
2146 ["key"] = new List<Dictionary<string, object>>()
2150 ["key"] = new List<object> { "value2" }
EqualityAssertsTests.cs (34)
879 var x = new List<object> { new List<object> { new List<object> { 1 } } };
880 var y = new List<object> { new List<object> { new List<object> { 1 } } };
888 var x = new List<object> { new List<object> { new List<object> { 1 } } };
889 var y = new List<object> { new List<object> { new List<object> { 2 } } };
1101 List<T> values = new();
1568 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42);
1578 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42);
1596 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" });
1606 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" });
3186 var x = new List<object> { new List<object> { new List<object> { 1 } } };
3187 var y = new List<object> { new List<object> { new List<object> { 1 } } };
3203 var x = new List<object> { new List<object> { new List<object> { 1 } } };
3204 var y = new List<object> { new List<object> { new List<object> { 2 } } };
3330 List<T> values = new();
3796 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42);
3814 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42);
3824 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" });
3842 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" });
EquivalenceAssertsTests.cs (8)
1123 Assert.Equivalent(new[] { 1, 2, 3 }, new List<int> { 1, 2, 3 });
1129 Assert.Equivalent(new List<int> { 1, 2, 3 }, new[] { 1, 2, 3 });
1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } };
1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } };
1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
Microsoft.DotNet.XUnitExtensions (3)
Microsoft.Extensions.AI.Abstractions (12)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.Tests (17)
Microsoft.Extensions.ApiDescription.Client.Tests (5)
Microsoft.Extensions.ApiDescription.Tool.Tests (5)
Microsoft.Extensions.AsyncState.Tests (1)
Microsoft.Extensions.Caching.Abstractions (2)
Microsoft.Extensions.Caching.Memory (7)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Configuration (9)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
Microsoft.Extensions.Configuration.Xml (5)
Microsoft.Extensions.DependencyInjection (7)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (15)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (8)
TelemetryHealthChecksPublisherTests.cs (6)
26new List<HealthStatus> { HealthStatus.Healthy },
34new List<HealthStatus> { HealthStatus.Degraded },
42new List<HealthStatus> { HealthStatus.Unhealthy },
50new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Healthy },
58new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Unhealthy },
66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy },
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (21)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.FileProviders.Composite (3)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileSystemGlobbing (18)
Microsoft.Extensions.Hosting (15)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics.Tests (46)
HttpHeadersRedactorTests.cs (8)
32Add(new LinkedList<string>(new List<string> { "aaa", "bbb", "ccc" }), "Redacted:aaa,Redacted:bbb,Redacted:ccc");
33Add(new LinkedList<string>(new List<string> { "aaa", "bbb", null! }), "Redacted:aaa,Redacted:bbb,");
34Add(new LinkedList<string>(new List<string> { "aaa", null!, null! }), "Redacted:aaa,,");
35Add(new LinkedList<string>(new List<string> { null!, null!, null! }), ",,");
36Add(new LinkedList<string>(new List<string> { null! }), string.Empty);
37Add(new LinkedList<string>(new List<string> { "aaa" }), "Redacted:aaa");
38Add(new LinkedList<string>(new List<string>()), string.Empty);
39Add(new LinkedList<string>(new List<string> { longStr, "bbb", "ccc" }), $"Redacted:{longStr},Redacted:bbb,Redacted:ccc");
Logging\AcceptanceTests.cs (5)
169httpRequestMessage.Headers.Add("ReQuEStHeAdErFirst", new List<string> { "Request Value 2", "Request Value 3" });
185httpRequestMessage2.Headers.Add("ReQuEStHeAdErSecond", new List<string> { "Request Value 2", "Request Value 3" });
250httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
272httpRequestMessage2.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
688httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
Logging\HttpClientLoggerTest.cs (10)
230new List<IHttpClientLogEnricher> { testEnricher },
326new List<IHttpClientLogEnricher> { testEnricher },
431new List<IHttpClientLogEnricher> { testEnricher },
546new List<IHttpClientLogEnricher> { testEnricher },
639new List<IHttpClientLogEnricher> { testEnricher },
682new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
725new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
760var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object };
807new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
909new List<IHttpClientLogEnricher> { testEnricher },
Logging\HttpRequestReaderTest.cs (16)
100var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
101var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
157var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
158var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
227var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
228var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
302var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
303var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
362var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
363var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
432var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
433var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
499var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
500var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
567var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
568var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Polly.Tests (2)
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Http.Resilience.Tests (7)
Microsoft.Extensions.Identity.Core (22)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging (9)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.Generators (6)
Microsoft.Extensions.Options (5)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Options.DataAnnotations (4)
Microsoft.Extensions.Options.SourceGeneration (10)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.SecretManager.Tools.Tests (5)
Microsoft.Extensions.ServiceDiscovery (5)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
Microsoft.Extensions.Telemetry (4)
Microsoft.Extensions.Telemetry.Abstractions (3)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (5)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (6)
Microsoft.Gen.Logging (5)
Microsoft.Gen.Logging.Unit.Tests (7)
Microsoft.Gen.MetadataExtractor (8)
Microsoft.Gen.MetadataExtractor.Unit.Tests (5)
Microsoft.Gen.Metrics (7)
Microsoft.Gen.Metrics.Unit.Tests (7)
Microsoft.Gen.MetricsReports (5)
Microsoft.Gen.MetricsReports.Unit.Tests (5)
Microsoft.Interop.ComInterfaceGenerator (7)
Microsoft.Interop.JavaScript.JSImportGenerator (13)
Microsoft.Interop.LibraryImportGenerator (11)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (6)
Microsoft.JSInterop.Tests (3)
Microsoft.Maui (35)
Microsoft.Maui.Controls (149)
Microsoft.Maui.Controls.BindingSourceGen (7)
Microsoft.Maui.Controls.Build.Tasks (23)
Microsoft.Maui.Controls.Compatibility (22)
Microsoft.Maui.Controls.Foldable (1)
Microsoft.Maui.Controls.SourceGen (8)
Microsoft.Maui.Controls.Xaml (18)
Microsoft.Maui.Essentials (14)
Microsoft.Maui.Graphics (19)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Maps (1)
Microsoft.Maui.Resizetizer (7)
Microsoft.ML.AutoML (63)
Microsoft.ML.AutoML.Interactive (5)
Microsoft.ML.AutoML.SourceGenerator (5)
Microsoft.ML.AutoML.Tests (35)
InferredPipelineTests.cs (19)
28var transforms1 = new List<SuggestedTransform>();
29var transforms2 = new List<SuggestedTransform>();
30var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
31var inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
35var hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) });
38inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
39inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
43hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) });
44var hyperparams2 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 6) });
47inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
48inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
54transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
55transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
56inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
57inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
63transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
64transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
65inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
66inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
Microsoft.ML.CodeGenerator (16)
Microsoft.ML.CodeGenerator.Tests (19)
ApprovalTests\ConsoleCodeGeneratorTests.cs (9)
602var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
604var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
605var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
639var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
641var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
642var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
1097var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
1099var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
1100var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
Microsoft.ML.Core (34)
Microsoft.ML.Core.Tests (10)
Microsoft.ML.Data (251)
Microsoft.ML.DataView (3)
Microsoft.ML.Ensemble (4)
Microsoft.ML.EntryPoints (36)
Microsoft.ML.FastTree (95)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.Core.Tests (3)
Microsoft.ML.GenAI.LLaMA (4)
Microsoft.ML.GenAI.LLaMA.Tests (1)
Microsoft.ML.GenAI.Mistral (3)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi (3)
Microsoft.ML.GenAI.Samples (2)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (11)
Microsoft.ML.Maml (3)
Microsoft.ML.Mkl.Components (2)
Microsoft.ML.OnnxConverter (7)
Microsoft.ML.OnnxTransformer (3)
Microsoft.ML.OnnxTransformerTest (6)
Microsoft.ML.Parquet (1)
Microsoft.ML.PerformanceTests (5)
Microsoft.ML.Predictor.Tests (17)
Microsoft.ML.Recommender (3)
Microsoft.ML.ResultProcessor (10)
Microsoft.ML.Samples (77)
Microsoft.ML.Samples.OneDal (3)
Microsoft.ML.SamplesUtils (4)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.StandardTrainers (17)
Microsoft.ML.Sweeper (28)
Microsoft.ML.Sweeper.Tests (13)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TensorFlow.Tests (4)
Microsoft.ML.TestFramework (13)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (86)
OnnxConversionTest.cs (19)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
415var samples = new List<DataPoint>()
506ctx.AddInitializer(new List<float> { 9.4f, 1.7f, 3.6f }, new List<long> { 1, 3 }, "floats");
507ctx.AddInitializer(new List<long> { 94L, 17L, 36L }, new List<long> { 1, 3 }, "int64s");
508ctx.AddInitializer(new List<string> { "94", "17", "36" }, new List<long> { 1, 3 }, "strings");
1154var samples = new List<DataPoint>()
1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>();
1439var samples = new List<TextData>()
1466var samples = new List<TextData>()
1546var samples = new List<TextData>()
1570var samples = new List<TextData>()
1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
Transformers\ValueMappingTests.cs (23)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
56var values = new List<int>() { 1, 2, 3, 4 };
93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() };
94var values = new List<int>() { 1, 2, 3, 4 };
139var keyValuePairs = new List<KeyValuePair<string, string>>() {
174IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" };
175List<int[]> values = new List<int[]>() {
263IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" };
264List<string[]> values = new List<string[]>() {
307var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
308var values = new List<int>() { 1, 2, 3, 4 };
345var keys = new List<string>() { "foo", "foo" };
346var values = new List<int>() { 1, 2 };
364var keyValuePairs = new List<KeyValuePair<string, int>>() {
396var keyValuePairs = new List<KeyValuePair<string, string>>() {
430var keyValuePairs = new List<KeyValuePair<string, uint>>() {
471var keyValuePairs = new List<KeyValuePair<string, ulong>>() {
512var keyValuePairs = new List<KeyValuePair<string, string>>() {
552var keyValuePairs = new List<KeyValuePair<string, string>>() {
594var keyValuePairs = new List<KeyValuePair<string, int>>() {
613var keyValuePairs = new List<KeyValuePair<string, int[]>>() {
633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() {
687var keyValuePairs = new List<KeyValuePair<string, int>>() {
Microsoft.ML.TimeSeries (40)
Microsoft.ML.TimeSeries.Tests (39)
TimeSeriesDirectApi.cs (19)
134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
157List<Data> data = new List<Data>();
190List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07,
213List<Data> data = new List<Data>();
289List<Data> data = new List<Data>();
359List<Data> data = new List<Data>();
398List<float> expectedForecast = new List<float>() { 0.191491723f, 2.53994083f, 5.26454258f, 7.37313938f };
399List<float> minCnf = new List<float>() { -3.9741993f, -2.36872721f, 0.09407653f, 2.18899345f };
400List<float> maxCnf = new List<float>() { 4.3571825f, 7.448609f, 10.435009f, 12.5572853f };
422List<Data> data = new List<Data>();
546var data = new List<TimeSeriesData>();
602data = new List<TimeSeriesDataDouble>();
958var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol);
985var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol);
1031List<MetricSlice> slice = new List<MetricSlice>
1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
1181List<MetricSlice> slice = new List<MetricSlice>
1215List<MetricSlice> slice = new List<MetricSlice>
1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesSimpleApiTests.cs (5)
62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
85var data = new List<Data>();
105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07,
145var expectedValues = new List<double[]>() {
197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (16)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (15)
TiktokenTests.cs (10)
139Assert.Equal(new List<int>() { 9906, 4435 }, encoded);
151Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets);
192Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded);
205Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets);
235Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded);
248Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets);
270Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded);
278Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 2), (18, 1), (19, 6), (25, 10) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray());
304Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded);
313Assert.Equal(new List<(int, int)> { (0, 13), (13, 5), (18, 2), (20, 6), (26, 15) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray());
Microsoft.ML.TorchSharp (72)
AutoFormerV2\AutoFormerV2Backbone.cs (7)
60embedChannels ??= new List<int>() { 96, 192, 384, 576 };
61depths ??= new List<int>() { 2, 2, 6, 2 };
62numHeads ??= new List<int>() { 3, 6, 12, 18 };
63windowSizes ??= new List<int>() { 7, 7, 14, 7 };
64outIndices ??= new List<int>() { 1, 2, 3 };
72var dpr = new List<double>();
121var outs = new List<Tensor>();
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp };
70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\ObjectDetectionTrainer.cs (12)
84public List<int> Steps = new List<int> { 6 };
218embedChannels: new List<int>() { 64, 128, 256, 448 },
219depths: new List<int>() { 2, 2, 6, 2 },
220numHeads: new List<int>() { 2, 4, 8, 14 },
377List<Tensor> part = new List<Tensor>();
446var metadata = new List<SchemaShape.Column>();
450var scoreMetadata = new List<SchemaShape.Column>();
551var scoreMetadata = new List<SchemaShape.Column>();
689embedChannels: new List<int>() { 64, 128, 256, 448 },
690depths: new List<int>() { 2, 2, 6, 2 },
691numHeads: new List<int>() { 2, 4, 8, 14 },
911var part = new List<Tensor>();
NasBert\Modules\MultiHeadAttention.cs (7)
206k = torch.cat(new List<torch.Tensor> { k, kRepeat }, dim: 0);
207v = torch.cat(new List<torch.Tensor> { v, vRepeat }, dim: 0);
224: torch.cat(new List<torch.Tensor> { prevKey, k }, dim: 1);
232: torch.cat(new List<torch.Tensor> { prevValue, v }, dim: 1);
258k = torch.cat(new List<torch.Tensor> { k, kZeros }, dim: 1);
259v = torch.cat(new List<torch.Tensor> { v, vZeros }, dim: 1);
310return torch.cat(new List<torch.Tensor> { tensor, zeros }, dim: 1);
Utils\ImageUtils.cs (6)
49var finalResult = new[] { new List<Tensor>(), new List<Tensor>(), new List<Tensor>() };
119var keep = new List<long>();
191new List<Tensor> { predBoxesX1, predBoxesY1, predBoxesX2, predBoxesY2 },
220new List<Tensor> { clippedBoxesX0, clippedBoxesY0, clippedBoxesX1, clippedBoxesY1 },
Microsoft.ML.TorchSharp.Tests (1)
Microsoft.ML.Transforms (77)
Microsoft.ML.Vision (4)
Microsoft.Net.Http.Headers (5)
Microsoft.Net.Http.Headers.Tests (6)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualBasic.Core (11)
Microsoft.VisualStudio.LanguageServices (61)
GenerateType\GenerateTypeDialog.xaml.cs (5)
53new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.A, ModifierKeys.Alt) })),
60new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.K, ModifierKeys.Alt) })),
67new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.P, ModifierKeys.Alt) })),
74new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.C, ModifierKeys.Alt) })),
81new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.X, ModifierKeys.Alt) })),
Telemetry\CodeMarkerLogger.cs (23)
23{ FunctionId.NavigateTo_Search, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
29{ FunctionId.Rename_InlineSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
34{ FunctionId.Rename_FindLinkedSpans, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
39{ FunctionId.WinformDesigner_GenerateXML, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
44{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
50{ FunctionId.FindReference, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
55{ FunctionId.SmartTags_SmartTagInitializeFixes, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
60{ FunctionId.SmartTags_ApplyQuickFix, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
66{ FunctionId.LineCommit_CommitRegion, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
71{ FunctionId.Tagger_Outlining_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
76{ FunctionId.Tagger_LineSeparator_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
81{ FunctionId.NavigationBar_ComputeModelAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
86{ FunctionId.Completion_ModelComputer_DoInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
92{ FunctionId.SignatureHelp_ModelComputation_UpdateModelInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
97{ FunctionId.Formatting_Format, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
102{ FunctionId.Formatting_ApplyResultToBuffer, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
107{ FunctionId.SmartTags_RefreshSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>()
118{ FunctionId.Rename_InlineSession, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBRenameSymbolEnd } },
119{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerReachedBoundState, CodeMarkerEvent.perfVBCompilerReachedCompiledState } },
120{ FunctionId.Completion_ModelComputer_DoInBackground, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBIntelliXMLIndexingEnd } },
121{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_FirstItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeBegin, CodeMarkerEvent.perfVBCompilerCommitBegin } },
122{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_LastItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeEnd, CodeMarkerEvent.perfVBCompilerCommitEnd } },
123{ FunctionId.Snippet_OnAfterInsertion, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBInsertSnippetEnd } }
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
Microsoft.VisualStudio.LanguageServices.CSharp (15)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (10)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
MilvusPlayground.ApiService (4)
MSBuild (19)
MSBuildTaskHost (4)
Mvc.Api.Analyzers.Test (5)
MyFrontend (2)
Nats.ApiService (1)
OrderProcessor (2)
PathSchemeSelection (1)
PrepareTests (2)
PresentationBuildTasks (12)
PresentationCore (140)
PresentationCore.Tests (15)
BinaryFormat\ListTests.cs (14)
108new List<int>(),
109new List<float>() { 3.14f },
110new List<float>() { float.NaN, float.PositiveInfinity, float.NegativeInfinity, float.NegativeZero },
111new List<int>() { 1, 3, 4, 5, 6, 7 },
112new List<byte>() { 0xDE, 0xAD, 0xBE, 0xEF },
113new List<char>() { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' },
114new List<char>() { 'a', '\0', 'c' },
115new List<string>() { "Believe", "it", "or", "not" },
116new List<decimal>() { 42m },
117new List<DateTime>() { new(2000, 1, 1) },
118new List<TimeSpan>() { new(0, 0, 50) }
123new List<object>(),
124new List<nint>(),
125new List<(int, int)>()
PresentationFramework (329)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1796new List<Type>() { typeof(System.Type) },
1886new List<Type>() { typeof(System.String) },
2829new List<Type>() { typeof(System.Object) },
2975new List<Type>() { typeof(System.Type), typeof(System.Object) },
3357new List<Type>() { typeof(System.Object) },
4353new List<Type>() { typeof(System.Object) },
9168new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) },
9175new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) },
10452new List<Type>() { typeof(System.String) },
10473new List<Type>() { typeof(System.Object) },
10957new List<Type>() { typeof(System.Windows.DependencyProperty) },
11197new List<Type>() { typeof(System.String) },
11829new List<Type>() { typeof(System.Type) },
13166new List<Type>() { typeof(System.Object) },
PresentationUI (18)
RazorBuildWebSite (1)
RazorWebSite (5)
ReachFramework (36)
Replay (1)
Roslyn.Test.PdbUtilities (5)
Roslyn.VisualStudio.Next.UnitTests (4)
RoutingSandbox (6)
RoutingWebSite (1)
RunTests (18)
SampleStartups (1)
SemanticSearch.BuildTask (9)
SemanticSearch.BuildTask.UnitTests (8)
Shared (11)
Shared.Tests (14)
SignalR.Client.FunctionalTestApp (1)
Sockets.BindTests (4)
Sockets.FunctionalTests (6)
StaticFilesAuth (2)
Stress.ApiService (4)
Stress.TelemetryService (1)
Swaggatherer (11)
System.CodeDom (2)
System.Collections (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (3)
System.ComponentModel.Annotations (3)
System.ComponentModel.Composition (50)
System.ComponentModel.Composition.Registration (18)
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
39_typeExportBuilders = new List<ExportBuilder>();
40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>();
41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>();
42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>();
215_metadataItems ??= new List<Tuple<string, object>>();
223_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>();
252var attributes = new List<Attribute>();
415configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
530configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (10)
System.Composition.Convention (21)
System\Composition\Convention\PartConventionBuilder.cs (12)
18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
43_typeExportBuilders = new List<ExportConventionBuilder>();
44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>();
45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>();
46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>();
47_methodImportsSatisfiedNotifications = new List<Predicate<MethodInfo>>();
436_metadataItems ??= new List<Tuple<string, object>>();
463_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>();
491var attributes = new List<Attribute>();
648configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
715var onImportsSatisfiedAttributeList = new List<Attribute>
817configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (4)
System.Composition.TypedParts (9)
System.Configuration.ConfigurationManager (5)
System.Data.Common (48)
System.Data.Odbc (10)
System.Diagnostics.DiagnosticSource (11)
System.Diagnostics.Process (6)
System.Diagnostics.TraceSource (4)
System.Formats.Asn1 (1)
System.Formats.Cbor (4)
System.Formats.Nrbf (1)
System.Formats.Tar (1)
System.IO.Compression (2)
System.IO.FileSystem.DriveInfo (1)
System.IO.FileSystem.Watcher (1)
System.IO.Packaging (2)
System.IO.Pipelines (2)
System.IO.Ports (4)
System.Linq (1)
System.Linq.Expressions (29)
System.Linq.Parallel (6)
System.Memory (2)
System.Net.Http (19)
System.Net.HttpListener (11)
System.Net.Mail (6)
System.Net.NetworkInformation (12)
System.Net.Primitives (4)
System.Net.Quic (2)
System.Net.Requests (2)
System.Net.Security (3)
System.Net.WebHeaderCollection (1)
System.Net.WebSockets.Client (1)
System.Numerics.Tensors (3)
System.ObjectModel (1)
System.Private.CoreLib (80)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (33)
System.Private.Windows.Core (1)
System.Private.Xml (135)
System.Private.Xml.Linq (4)
System.Reflection.Context (3)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (38)
System.Reflection.Metadata (48)
System.Reflection.MetadataLoadContext (6)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Runtime.Serialization.Formatters (2)
System.Runtime.Serialization.Schema (3)
System.Security.Claims (3)
System.Security.Cryptography (34)
System.Security.Cryptography.Pkcs (35)
System.Security.Cryptography.Xml (2)
System.Security.Permissions (1)
System.ServiceModel.Federation (2)
System.ServiceModel.Federation.Tests (1)
System.ServiceModel.NetFramingBase (7)
System.ServiceModel.NetNamedPipe (1)
System.ServiceModel.Primitives.Tests (25)
System.Text.Json (20)
System.Text.Json.SourceGeneration (11)
System.Text.RegularExpressions (21)
System.Text.RegularExpressions.Generator (10)
System.Threading.Channels (1)
System.Threading.RateLimiting (8)
System.Threading.Tasks.Dataflow (9)
System.Threading.Tasks.Parallel (1)
System.Windows.Controls.Ribbon (17)
System.Windows.Forms (3)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (9)
System.Windows.Forms.Tests (85)
System.Xaml (69)
System.Xaml.Tests (7)
Templates.Blazor.Tests (17)
Templates.Blazor.WebAssembly.Auth.Tests (16)
Templates.Blazor.WebAssembly.Tests (16)
Templates.Mvc.Tests (22)
Templates.Tests (16)
UnitTests.Common (1)
VBCSCompiler (7)
VBCSCompiler.UnitTests (10)
Wasm.Performance.ConsoleHost (6)
Wasm.Performance.Driver (3)
WindowsBase.Tests (77)
System\Windows\DependencyPropertyTests.cs (24)
60yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
112yield return new object?[] { "Register_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 2 };
172yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
371yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
425yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
485yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
647yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
703yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 2 };
767yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
940yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
998yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 1 };
1062yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (6)
87var instance = new List<int> { 1, 2, 3 };
181var list = new List<int> { 1, 2, 3 };
294var list = new List<int> { 1, 2, 3 };
451var instance = new List<int> { 1, 2, 3 };
474var list = new List<int> { 1, 2, 3 };
509var list = new List<int> { 1, 2, 3 };
WindowsFormsIntegration (2)
XmlFileLogger (5)
XmlFormattersWebSite (3)
xunit.assert (8)
xunit.console (19)