2138 references to Collection
Aspire.Dashboard.Components.Tests (19)
Controls\ResourceDetailsTests.cs (12)
40Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
57Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
83Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
123Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
140Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
166Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
206Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
223Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
249Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
289Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
306Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
332Assert.Collection(cut.Instance.FilteredEnvironmentVariables,
Aspire.Dashboard.Tests (120)
TelemetryRepositoryTests\LogTests.cs (19)
59Assert.Collection(applications,
73Assert.Collection(logs.Items,
81Assert.Collection(app.Attributes,
90Assert.Collection(propertyKeys,
128Assert.Collection(logs.Items,
180Assert.Collection(logs.Items,
482Assert.Collection(applications,
654Assert.Collection(applications,
668Assert.Collection(logs.Items,
673Assert.Collection(app.Attributes,
866Assert.Collection(applications,
885Assert.Collection(logs1.Items,
893Assert.Collection(app.Attributes,
908Assert.Collection(logs2.Items,
916Assert.Collection(app.Attributes,
984Assert.Collection(logs.Items,
989Assert.Collection(app.Attributes,
1000Assert.Collection(app.Attributes,
1009Assert.Collection(propertyKeys,
TelemetryRepositoryTests\MetricsTests.cs (15)
63Assert.Collection(applications,
71Assert.Collection(instruments,
136Assert.Collection(applications,
152Assert.Collection(instrument.Summary.Parent.Attributes,
181Assert.Collection(dimensionAttributes,
252Assert.Collection(applications,
268Assert.Collection(instrument.Summary.Parent.Attributes,
277Assert.Collection(dimensionAttributes,
350Assert.Collection(applications,
372Assert.Collection(instrumentData.KnownAttributeValues.OrderBy(kvp => kvp.Key),
457Assert.Collection(applications,
480Assert.Collection(dimension.Values,
566Assert.Collection(instruments,
594Assert.Collection(instrument.Dimensions.OrderBy(d => d.Name),
614Assert.Collection(knownValues.Value.Order(),
TelemetryRepositoryTests\TraceTests.cs (43)
70Assert.Collection(applications,
85Assert.Collection(traces.PagedResult.Items,
129Assert.Collection(applications,
184Assert.Collection(applications,
199Assert.Collection(traces.PagedResult.Items,
239Assert.Collection(applications,
254Assert.Collection(traces.PagedResult.Items,
310Assert.Collection(applications,
325Assert.Collection(traces.PagedResult.Items,
333Assert.Collection(trace.Spans,
387Assert.Collection(applications,
402Assert.Collection(traces1.PagedResult.Items,
444Assert.Collection(traces2.PagedResult.Items,
499Assert.Collection(traces.PagedResult.Items,
505Assert.Collection(trace.Spans,
568Assert.Collection(traces.PagedResult.Items,
573Assert.Collection(trace.FirstSpan.Events,
577Assert.Collection(e.Attributes,
645Assert.Collection(traces.PagedResult.Items,
650Assert.Collection(trace.FirstSpan.Links,
655Assert.Collection(l.Attributes,
666Assert.Collection(l.Attributes,
675Assert.Collection(repository.SpanLinks,
680Assert.Collection(l.Attributes,
691Assert.Collection(l.Attributes,
735Assert.Collection(traces1.PagedResult.Items,
804Assert.Collection(applications,
824Assert.Collection(trace.FirstSpan.Attributes,
875Assert.Collection(trace.Spans,
928Assert.Collection(applications,
1050Assert.Collection(traces.PagedResult.Items,
1120Assert.Collection(traces.PagedResult.Items,
1131Assert.Collection(propertyKeys,
1188Assert.Collection(traces.PagedResult.Items,
1207Assert.Collection(traces.PagedResult.Items,
1293Assert.Collection(traces.PagedResult.Items,
1483Assert.Collection(views,
1486Assert.Collection(v.Properties,
1495Assert.Collection(v.Properties,
1518Assert.Collection(trace.Spans,
1522Assert.Collection(s.Source.Properties,
1532Assert.Collection(s.Source.Properties,
1547Assert.Collection(s.Source.Properties,
Aspire.Hosting.Azure.Tests (5)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Elasticsearch.Tests (2)
Aspire.Hosting.MongoDB.Tests (4)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Nats.Tests (2)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.PostgreSQL.Tests (5)
Aspire.Hosting.Qdrant.Tests (2)
Aspire.Hosting.Redis.Tests (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (21)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.Workload.Tests (1)
InMemory.FunctionalTests (37)
KestrelMetricsTests.cs (17)
79Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
99Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
100Assert.Collection(queuedConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
367Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
388Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
389Assert.Collection(queuedConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
472Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
482Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
486Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
487Assert.Collection(queuedConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
515Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
516Assert.Collection(currentUpgradedRequests.GetMeasurementSnapshot(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
740Assert.Collection(activeConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
741Assert.Collection(queuedConnections.GetMeasurementSnapshot(), m => AssertCount(m, 1, "127.0.0.1", localPort: 0, "tcp", "ipv4"), m => AssertCount(m, -1, "127.0.0.1", localPort: 0, "tcp", "ipv4"));
749Assert.Collection(tlsHandshakeDuration.GetMeasurementSnapshot(), m =>
755Assert.Collection(activeTlsHandshakes.GetMeasurementSnapshot(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
909Assert.Collection(tlsHandshakeDuration.GetMeasurementSnapshot(), m =>
Interop.FunctionalTests (2)
Microsoft.AspNetCore.Analyzers.Test (4)
Microsoft.AspNetCore.App.Analyzers.Test (37)
Microsoft.AspNetCore.Components.Authorization.Tests (50)
AuthorizeRouteViewTest.cs (15)
63Assert.Collection(layoutDiff.Edits,
74Assert.Collection(pageDiff.Edits,
100Assert.Collection(layoutDiff.Edits,
111Assert.Collection(pageDiff.Edits,
115Assert.Collection(_testAuthorizationService.AuthorizeCalls, call =>
138Assert.Collection(layoutDiff.Edits,
144Assert.Collection(_testAuthorizationService.AuthorizeCalls, call =>
167Assert.Collection(layoutDiff.Edits,
195Assert.Collection(layoutDiff.Edits,
223Assert.Collection(layoutDiff.Edits,
237Assert.Collection(nonEmptyDiff.Edits, edit =>
267Assert.Collection(layoutDiff.Edits,
289Assert.Collection(componentInstances,
318Assert.Collection(componentInstances,
354Assert.Collection(diff.Edits,
AuthorizeViewTest.cs (31)
41Assert.Collection(authorizationService.AuthorizeCalls, call =>
45Assert.Collection(call.requirements,
67Assert.Collection(diff.Edits, edit =>
76Assert.Collection(authorizationService.AuthorizeCalls, call =>
80Assert.Collection(call.requirements,
104Assert.Collection(authorizationService.AuthorizeCalls, call =>
108Assert.Collection(call.requirements,
131Assert.Collection(diff.Edits, edit =>
140Assert.Collection(authorizationService.AuthorizeCalls, call =>
144Assert.Collection(call.requirements,
167Assert.Collection(diff.Edits, edit =>
176Assert.Collection(authorizationService.AuthorizeCalls, call =>
180Assert.Collection(call.requirements,
214Assert.Collection(diff.Edits, edit =>
223Assert.Collection(authorizationService.AuthorizeCalls, call =>
227Assert.Collection(call.requirements,
281Assert.Collection(diff2.Edits, edit =>
312Assert.Collection(diff1.Edits, edit =>
330Assert.Collection(diff2.Edits, edit =>
340Assert.Collection(authorizationService.AuthorizeCalls, call =>
344Assert.Collection(call.requirements,
370Assert.Collection(diff1.Edits, edit =>
388Assert.Collection(diff2.Edits, edit =>
398Assert.Collection(authorizationService.AuthorizeCalls, call =>
402Assert.Collection(call.requirements,
421Assert.Collection(authorizationService.AuthorizeCalls, call =>
425Assert.Collection(call.requirements,
444Assert.Collection(authorizationService.AuthorizeCalls, call =>
448Assert.Collection(call.requirements, req => Assert.Equal(
469Assert.Collection(authorizationService.AuthorizeCalls, call =>
473Assert.Collection(call.requirements, req =>
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
Microsoft.AspNetCore.Components.Server.Tests (11)
ProtectedBrowserStorageTest.cs (7)
36Assert.Collection(invocation.Args,
62Assert.Collection(invocation.Args,
86Assert.Collection(invocation.Args,
117Assert.Collection(invocation.Args, arg => Assert.Equal(keyName, arg));
144Assert.Collection(invocation.Args, arg => Assert.Equal(keyName, arg));
253Assert.Collection(invocation.Args, arg => Assert.Equal("testKey", arg));
281Assert.Collection(jsRuntime.Invocations,
Microsoft.AspNetCore.Components.Tests (230)
CascadingParameterTest.cs (16)
39Assert.Collection(nestedComponentDiff.Edits,
88Assert.Collection(nestedComponentDiff.Edits,
134Assert.Collection(nestedComponentDiff.Edits,
280Assert.Collection(nestedComponentDiff.Edits, edit =>
423Assert.Collection(nestedComponentDiff1.Edits,
431Assert.Collection(nestedComponentDiff2.Edits,
470Assert.Collection(diff.Edits,
506Assert.Collection(diff.Edits,
544Assert.Collection(nestedComponentDiff.Edits,
586Assert.Collection(diff.Edits,
605Assert.Collection(diff2.Edits,
621Assert.Collection(diff3.Edits,
656Assert.Collection(diff.Edits,
681Assert.Collection(nestedComponentDiff.Edits,
752Assert.Collection(firstBatch.GetComponentDiffs<SingleDeliveryParameterConsumerComponent>().Single().Edits,
776Assert.Collection(nestedComponentDiff.Edits,
LayoutViewTest.cs (13)
52Assert.Collection(frames,
71Assert.Collection(layoutViewFrames,
77Assert.Collection(rootLayoutFrames,
101Assert.Collection(layoutViewFrames,
107Assert.Collection(rootLayoutFrames,
133Assert.Collection(layoutViewFrames,
139Assert.Collection(rootLayoutFrames,
148Assert.Collection(nestedLayoutFrames,
182Assert.Collection(batch.DiffsInOrder,
188Assert.Collection(diff.Edits, edit =>
224Assert.Collection(batch.DiffsInOrder,
229Assert.Collection(diff.Edits,
247Assert.Collection(diff.Edits,
RendererTest.cs (34)
47Assert.Collection(diff.Edits,
86Assert.Collection(nestedComponentDiff.Edits,
108Assert.Collection(firstDiff.Edits,
121Assert.Collection(secondDiff.Edits,
153Assert.Collection(firstDiff.Edits,
166Assert.Collection(secondDiff.Edits,
196Assert.Collection(diff.Edits,
211Assert.Collection(updateDiff.Edits,
290Assert.Collection(diff.Edits, edit =>
306Assert.Collection(diff2.Edits, edit =>
2012Assert.Collection(renderer1Diff.Edits,
2022Assert.Collection(renderer2Diff.Edits,
2059Assert.Collection(diff.Edits,
2135Assert.Collection(diff.Edits,
2173Assert.Collection(diff.Edits,
2878Assert.Collection(batch.DiffsInOrder,
2883Assert.Collection(diff.Edits, edit =>
2895Assert.Collection(diff.Edits, edit =>
2907Assert.Collection(diff.Edits, edit =>
2986Assert.Collection(diff1.Edits,
3070Assert.Collection(newBatch.DiffsByComponentId[componentId].Single().Edits,
3294Assert.Collection(latestDiff.Edits,
4355Assert.Collection(batch2.DiffsInOrder.Single().Edits.ToArray(), edit =>
4407Assert.Collection(latestBatch.DiffsInOrder.Single().Edits.ToArray(), edit =>
4503Assert.Collection(componentActivator.RequestedComponentTypes,
4521Assert.Collection(componentActivator.RequestedComponentTypes,
4564Assert.Collection(componentFrames.Select(f => (TestErrorBoundary)f.Component),
4600Assert.Collection(errorBoundaries,
4640Assert.Collection(errorBoundaries,
4678Assert.Collection(errorBoundaries,
4714Assert.Collection(errorBoundaries,
4722Assert.Collection(errorBoundaries,
4763Assert.Collection(errorBoundaries,
4777Assert.Collection(errorBoundaries,
Rendering\RenderTreeBuilderTest.cs (70)
39Assert.Collection(frames.AsEnumerable(),
59Assert.Collection(frames.AsEnumerable(),
80Assert.Collection(frames.AsEnumerable(),
102Assert.Collection(frames.AsEnumerable(),
118Assert.Collection(frames.AsEnumerable(),
135Assert.Collection(frames.AsEnumerable(),
215Assert.Collection(builder.GetFrames().AsEnumerable(),
248Assert.Collection(builder.GetFrames().AsEnumerable(),
270Assert.Collection(
309Assert.Collection(
343Assert.Collection(
617Assert.Collection(builder.GetFrames().AsEnumerable(),
645Assert.Collection(builder.GetFrames().AsEnumerable(),
673Assert.Collection(builder.GetFrames().AsEnumerable(),
701Assert.Collection(builder.GetFrames().AsEnumerable(),
724Assert.Collection(builder.GetFrames().AsEnumerable(),
792Assert.Collection(builder.GetFrames().AsEnumerable(),
813Assert.Collection(builder.GetFrames().AsEnumerable(),
881Assert.Collection(builder.GetFrames().AsEnumerable(),
916Assert.Collection(
934Assert.Collection(
953Assert.Collection(
973Assert.Collection(
991Assert.Collection(
1009Assert.Collection(
1028Assert.Collection(
1048Assert.Collection(
1068Assert.Collection(
1086Assert.Collection(
1105Assert.Collection(
1123Assert.Collection(
1147Assert.Collection(
1166Assert.Collection(
1204Assert.Collection(
1223Assert.Collection(
1243Assert.Collection(
1263Assert.Collection(
1301Assert.Collection(
1340Assert.Collection(
1360Assert.Collection(
1378Assert.Collection(
1396Assert.Collection(
1415Assert.Collection(
1433Assert.Collection(
1451Assert.Collection(
1471Assert.Collection(
1491Assert.Collection(
1511Assert.Collection(
1531Assert.Collection(
1569Assert.Collection(
1588Assert.Collection(
1608Assert.Collection(
1646Assert.Collection(
1683Assert.Collection(
1703Assert.Collection(
1729Assert.Collection(
1782Assert.Collection(
1803Assert.Collection(
1826Assert.Collection(
1853Assert.Collection(
1878Assert.Collection(
1902Assert.Collection(
1925Assert.Collection(
1949Assert.Collection(
1976Assert.Collection(
2014Assert.Collection(
2094Assert.Collection(
2117Assert.Collection(
2156Assert.Collection(
2196Assert.Collection(
RenderTreeDiffBuilderTest.cs (77)
84Assert.Collection(result.Edits,
107Assert.Collection(result.Edits,
137Assert.Collection(result.Edits,
172Assert.Collection(result.Edits,
197Assert.Collection(result.Edits,
240Assert.Collection(batchBuilder.UpdatedComponents.Array[0].Edits,
282Assert.Collection(result.Edits,
314Assert.Collection(result.Edits,
343Assert.Collection(result.Edits,
375Assert.Collection(result.Edits,
462Assert.Collection(result.Edits,
493Assert.Collection(result.Edits,
517Assert.Collection(result.Edits,
547Assert.Collection(result.Edits,
569Assert.Collection(result.Edits,
589Assert.Collection(result.Edits,
619Assert.Collection(result.Edits,
639Assert.Collection(result.Edits,
669Assert.Collection(result.Edits,
699Assert.Collection(result.Edits,
715Assert.Collection(result.Edits,
733Assert.Collection(result.Edits,
761Assert.Collection(result.Edits,
797Assert.Collection(result.Edits,
848Assert.Collection(result.Edits,
873Assert.Collection(result.Edits,
898Assert.Collection(result.Edits,
928Assert.Collection(result.Edits,
956Assert.Collection(result.Edits,
988Assert.Collection(
995Assert.Collection(
1018Assert.Collection(
1026Assert.Collection(
1049Assert.Collection(
1057Assert.Collection(
1080Assert.Collection(
1087Assert.Collection(
1110Assert.Collection(
1118Assert.Collection(
1141Assert.Collection(
1149Assert.Collection(
1172Assert.Collection(
1199Assert.Collection(
1226Assert.Collection(
1253Assert.Collection(
1280Assert.Collection(
1307Assert.Collection(
1342Assert.Collection(result.Edits,
1383Assert.Collection(result.Edits,
1411Assert.Collection(result.Edits,
1436Assert.Collection(result.Edits,
1442Assert.Collection(referenceFrames,
1467Assert.Collection(result.Edits,
1501Assert.Collection(result.Edits,
1531Assert.Collection(result.Edits,
1567Assert.Collection(diff.Edits,
1858Assert.Collection(diff.Edits, edit =>
1863Assert.Collection(referenceFrames,
1928Assert.Collection(diff.Edits, edit =>
1933Assert.Collection(referenceFrames,
2003Assert.Collection(result.Edits,
2068Assert.Collection(result.Edits,
2089Assert.Collection(result.Edits,
2116Assert.Collection(result.Edits,
2138Assert.Collection(result.Edits,
2165Assert.Collection(result.Edits,
2185Assert.Collection(result.Edits,
2209Assert.Collection(result.Edits,
2238Assert.Collection(result.Edits,
2245Assert.Collection(batch.NamedEventChanges.Value.AsEnumerable(),
2269Assert.Collection(result.Edits,
2271Assert.Collection(batch.NamedEventChanges.Value.AsEnumerable(),
2292Assert.Collection(result.Edits,
2299Assert.Collection(batch.NamedEventChanges.Value.AsEnumerable(),
2322Assert.Collection(batch.NamedEventChanges.Value.AsEnumerable(),
2353Assert.Collection(result.Edits,
2386Assert.Collection(result.Edits,
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebView.Test (4)
Microsoft.AspNetCore.Cors.Test (6)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics.Tests (13)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (18)
Microsoft.AspNetCore.Grpc.Swagger.Tests (4)
Microsoft.AspNetCore.Hosting.Tests (25)
HostingApplicationDiagnosticsTests.cs (17)
85Assert.Collection(activeRequestsCollector1.GetMeasurementSnapshot(),
88Assert.Collection(activeRequestsCollector2.GetMeasurementSnapshot(),
91Assert.Collection(requestDurationCollector1.GetMeasurementSnapshot(),
93Assert.Collection(requestDurationCollector2.GetMeasurementSnapshot(),
119Assert.Collection(activeRequestsCollector1.GetMeasurementSnapshot(),
124Assert.Collection(activeRequestsCollector2.GetMeasurementSnapshot(),
129Assert.Collection(requestDurationCollector1.GetMeasurementSnapshot(),
132Assert.Collection(requestDurationCollector2.GetMeasurementSnapshot(),
255Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
271Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
314Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
330Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
343Assert.Collection(requestDurationCollector.GetMeasurementSnapshot(),
374Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
390Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
429Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
445Assert.Collection(activeRequestsCollector.GetMeasurementSnapshot(),
Microsoft.AspNetCore.Html.Abstractions.Tests (12)
Microsoft.AspNetCore.Http.Abstractions.Tests (51)
RouteValueDictionaryTests.cs (39)
123Assert.Collection(
145Assert.Collection(
197Assert.Collection(
214Assert.Collection(
240Assert.Collection(
292Assert.Collection(
320Assert.Collection(
373Assert.Collection(
391Assert.Collection(
580Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
594Assert.Collection(
611Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
625Assert.Collection(dict, kvp => { Assert.Equal("kEy", kvp.Key); Assert.Equal("value", kvp.Value); });
642Assert.Collection(
662Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
679Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
827Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
854Assert.Collection(
861Assert.Collection(
882Assert.Collection(
904Assert.Collection(
925Assert.Collection(
944Assert.Collection(
1104Assert.Collection(
1124Assert.Collection(
1144Assert.Collection(
1165Assert.Collection(
1373Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1394Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1450Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1498Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1594Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1647Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1791Assert.Collection(
1812Assert.Collection(
1828Assert.Collection(
1850Assert.Collection(
1875Assert.Collection(
1901Assert.Collection(
Microsoft.AspNetCore.Http.Connections.Tests (19)
MapConnectionHandlerTests.cs (14)
47Assert.Collection(dataSource.Endpoints,
84Assert.Collection(dataSource.Endpoints,
111Assert.Collection(dataSource.Endpoints,
139Assert.Collection(dataSource.Endpoints,
170Assert.Collection(dataSource.Endpoints,
199Assert.Collection(dataSource.Endpoints,
229Assert.Collection(dataSource.Endpoints,
261Assert.Collection(dataSource.Endpoints,
265Assert.Collection(endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>(),
275Assert.Collection(endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>(),
299Assert.Collection(dataSource.Endpoints,
335Assert.Collection(dataSource.Endpoints,
369Assert.Collection(dataSource.Endpoints,
417Assert.Collection(dataSource.Endpoints,
Microsoft.AspNetCore.Http.Extensions.Tests (20)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Localization.Tests (4)
Microsoft.AspNetCore.Mvc.Abstractions.Test (7)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (57)
Microsoft.AspNetCore.Mvc.Core.Test (206)
Routing\UrlHelperExtensionsTest.cs (17)
41Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
89Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
121Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
153Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
185Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
235Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
284Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
327Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
375Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
418Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
453Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
480Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
524Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
587Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values).OrderBy(v => v.Key),
743Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
791Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
839Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (36)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (5)
Microsoft.AspNetCore.Mvc.FunctionalTests (37)
Microsoft.AspNetCore.Mvc.IntegrationTests (75)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (11)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (15)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (141)
DependencyInjection\PageConventionCollectionExtensionsTest.cs (37)
36Assert.Collection(models,
60Assert.Collection(models,
95Assert.Collection(models,
126Assert.Collection(models,
152Assert.Collection(models,
181Assert.Collection(models,
186Assert.Collection(model.EndpointMetadata,
193Assert.Collection(model.EndpointMetadata,
200Assert.Collection(model.EndpointMetadata,
226Assert.Collection(models,
266Assert.Collection(models,
271Assert.Collection(model.EndpointMetadata,
278Assert.Collection(model.EndpointMetadata,
286Assert.Collection(model.EndpointMetadata,
312Assert.Collection(models,
351Assert.Collection(models,
388Assert.Collection(models,
421Assert.Collection(models,
450Assert.Collection(models,
478Assert.Collection(models,
505Assert.Collection(models,
532Assert.Collection(models,
559Assert.Collection(models,
587Assert.Collection(models,
616Assert.Collection(models,
647Assert.Collection(models,
684Assert.Collection(models,
721Assert.Collection(models,
760Assert.Collection(models,
799Assert.Collection(models,
838Assert.Collection(models,
887Assert.Collection(models,
891Assert.Collection(model.Selectors,
911Assert.Collection(model.Selectors,
948Assert.Collection(models,
952Assert.Collection(model.Selectors,
962Assert.Collection(model.Selectors,
Microsoft.AspNetCore.Mvc.TagHelpers.Test (18)
GlobbingUrlBuilderTest.cs (10)
29Assert.Collection(urlList, url => Assert.Equal("/site.css", url));
45Assert.Collection(urlList,
219Assert.Collection(urlList, collectionAssertions.ToArray());
240Assert.Collection(urlList,
262Assert.Collection(actual,
292Assert.Collection(urlList,
378Assert.Collection(includePatterns, pattern => Assert.Equal("**/*.css", pattern));
379Assert.Collection(excludePatterns, pattern => Assert.Equal("**/*.min.css", pattern));
406Assert.Collection(includePatterns, pattern => Assert.Equal($"{prefix}**/*.css", pattern));
407Assert.Collection(excludePatterns, pattern => Assert.Equal($"{prefix}**/*.min.css", pattern));
Microsoft.AspNetCore.Mvc.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (43)
Microsoft.AspNetCore.OpenApi.Tests (92)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Paths.cs (10)
23Assert.Collection(document.Paths.OrderBy(p => p.Key),
27Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
36Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
61Assert.Collection(document.Paths.OrderBy(p => p.Key),
83Assert.Collection(document.Paths.OrderBy(p => p.Key),
87Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
115Assert.Collection(document.Paths.OrderBy(p => p.Key),
119Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
154Assert.Collection(document.Paths.OrderBy(p => p.Key),
158Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (14)
186Assert.Collection(content.Value.Schema.AllOf,
426Assert.Collection(item.Schema.Properties,
482Assert.Collection(item.Schema.AllOf,
525Assert.Collection(item.Schema.Properties,
581Assert.Collection(item.Schema.AllOf,
584Assert.Collection(allOfItem.Properties, property =>
608Assert.Collection(allOfItem.Properties,
646Assert.Collection(item.Schema.AllOf,
649Assert.Collection(allOfItem.Properties, property =>
673Assert.Collection(allOfItem.Properties,
714Assert.Collection(item.Schema.Properties,
790Assert.Collection(item.Schema.Properties,
833Assert.Collection(item.Schema.Properties,
873Assert.Collection(item.Schema.Properties,
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (14)
30Assert.Collection(schema.Discriminator.Mapping,
34Assert.Collection(schema.Discriminator.Mapping,
67Assert.Collection(schema.Discriminator.Mapping,
72Assert.Collection(schema.Discriminator.Mapping,
112Assert.Collection(schema.Discriminator.Mapping,
116Assert.Collection(schema.Discriminator.Mapping,
152Assert.Collection(schema.AnyOf,
189Assert.Collection(schema.Discriminator.Mapping,
194Assert.Collection(schema.Discriminator.Mapping,
204Assert.Collection(schema.AnyOf,
244Assert.Collection(schema.AnyOf,
278Assert.Collection(schema.Discriminator.Mapping,
282Assert.Collection(schema.Discriminator.Mapping,
287Assert.Collection(schema.AnyOf,
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (14)
38Assert.Collection(schema.Properties,
94Assert.Collection(effectiveSchema.Properties,
168Assert.Collection(schema.Required,
219Assert.Collection(effectiveSchema.Properties,
270Assert.Collection(element.Items.GetEffective(document).Properties,
315Assert.Collection(schema.Properties,
354Assert.Collection(schema.Properties,
418Assert.Collection(schema.Properties,
471Assert.Collection(schema.Properties,
516Assert.Collection(schema.Properties,
577Assert.Collection(operation.RequestBody.Content["application/x-www-form-urlencoded"].Schema.AllOf,
615Assert.Collection(schema.Properties,
641Assert.Collection(schema.Properties,
679Assert.Collection(schema.Properties,
Microsoft.AspNetCore.RateLimiting.Tests (10)
RateLimitingMetricsTests.cs (10)
54Assert.Collection(rateLimitingRequestsCollector.GetMeasurementSnapshot(),
96Assert.Collection(currentLeaseRequestsCollector.GetMeasurementSnapshot(),
107Assert.Collection(currentLeaseRequestsCollector.GetMeasurementSnapshot(),
110Assert.Collection(leaseRequestDurationCollector.GetMeasurementSnapshot(),
114Assert.Collection(rateLimitingRequestsCollector.GetMeasurementSnapshot(),
163Assert.Collection(leaseRequestDurationCollector.GetMeasurementSnapshot(),
221Assert.Collection(currentRequestsQueuedCollector.GetMeasurementSnapshot(),
231Assert.Collection(currentRequestsQueuedCollector.GetMeasurementSnapshot(),
234Assert.Collection(queuedRequestDurationCollector.GetMeasurementSnapshot(),
307Assert.Collection(queuedRequestDurationCollector.GetMeasurementSnapshot(),
Microsoft.AspNetCore.Routing.Tests (122)
InlineRouteParameterParserTests.cs (11)
188Assert.Collection(templatePart.InlineConstraints,
202Assert.Collection(templatePart.InlineConstraints,
218Assert.Collection(templatePart.InlineConstraints,
234Assert.Collection(templatePart.InlineConstraints,
250Assert.Collection(templatePart.InlineConstraints,
287Assert.Collection(param1.InlineConstraints,
446Assert.Collection(templatePart.InlineConstraints,
460Assert.Collection(templatePart.InlineConstraints,
722Assert.Collection(templatePart.InlineConstraints,
737Assert.Collection(templatePart.InlineConstraints,
858Assert.Collection(templatePart.InlineConstraints,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Shared.Tests (29)
AdaptiveCapacityDictionaryTests.cs (16)
198Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
215Assert.Collection(
235Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
252Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
358Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
388Assert.Collection(
410Assert.Collection(
431Assert.Collection(
450Assert.Collection(
723Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
744Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
788Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
871Assert.Collection(dict, kvp => { Assert.Equal("key", kvp.Key); Assert.Equal("value", kvp.Value); });
1014Assert.Collection(
1042Assert.Collection(
1070Assert.Collection(
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Microsoft.AspNetCore.SignalR.Tests (27)
Internal\TypedClientBuilderTests.cs (11)
21Assert.Collection(clientProxy.Sends,
45Assert.Collection(clientProxy.Sends,
72Assert.Collection(clientProxy.Sends,
76Assert.Collection(send1.Arguments,
86Assert.Collection(send2.Arguments,
109Assert.Collection(clientProxy.Sends,
114Assert.Collection(send1.Arguments,
215Assert.Collection(clientProxy.Sends,
219Assert.Collection(send.Arguments,
257Assert.Collection(clientProxy.Sends,
262Assert.Collection(send1.Arguments,
MapSignalRTests.cs (11)
86Assert.Collection(dataSource.Endpoints,
119Assert.Collection(dataSource.Endpoints,
158Assert.Collection(dataSource.Endpoints,
187Assert.Collection(dataSource.Endpoints,
216Assert.Collection(dataSource.Endpoints,
248Assert.Collection(dataSource.Endpoints,
280Assert.Collection(dataSource.Endpoints,
284Assert.Collection(endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>(),
294Assert.Collection(endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>(),
319Assert.Collection(dataSource.Endpoints,
350Assert.Collection(dataSource.Endpoints,
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.AspNetCore.Tests (7)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (323)
SourceGeneration\GeneratorDriverTests.cs (78)
1695Assert.Collection(runResult.TrackedSteps["IdentityTransform"],
1698Assert.Collection(step.Inputs,
1700Assert.Collection(step.Outputs,
1707Assert.Collection(runResult.TrackedSteps["IdentityTransform"],
1710Assert.Collection(step.Inputs,
1712Assert.Collection(step.Outputs,
1744Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1747Assert.Collection(step.Inputs,
1753Assert.Collection(step.Outputs,
1760Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1763Assert.Collection(step.Inputs,
1769Assert.Collection(step.Outputs,
1782Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1785Assert.Collection(step.Inputs,
1791Assert.Collection(step.Outputs,
1798Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1801Assert.Collection(step.Inputs,
1807Assert.Collection(step.Outputs,
1816Assert.Collection(step.Inputs,
1822Assert.Collection(step.Outputs,
1835Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1838Assert.Collection(step.Inputs,
1844Assert.Collection(step.Outputs,
1851Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1854Assert.Collection(step.Inputs,
1860Assert.Collection(step.Outputs,
1869Assert.Collection(step.Inputs,
1875Assert.Collection(step.Outputs,
1887Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1890Assert.Collection(step.Inputs,
1896Assert.Collection(step.Outputs,
1903Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1906Assert.Collection(step.Inputs,
1912Assert.Collection(step.Outputs,
1921Assert.Collection(step.Inputs,
1927Assert.Collection(step.Outputs,
2004Assert.Collection(runResult.TrackedSteps["Step"],
2007Assert.Collection(step.Inputs,
2018Assert.Collection(step.Outputs,
2033Assert.Collection(runResult.TrackedSteps["Step"],
2036Assert.Collection(step.Inputs,
2047Assert.Collection(step.Outputs,
2059Assert.Collection(runResult.TrackedSteps["Step2"],
2062Assert.Collection(step.Inputs,
2070Assert.Collection(step.Outputs,
2085Assert.Collection(runResult.TrackedSteps["Step"],
2088Assert.Collection(step.Inputs,
2099Assert.Collection(step.Outputs,
2403Assert.Collection(runResult.TrackedSteps["Classes"],
2419Assert.Collection(runResult.TrackedSteps["Classes"],
2436Assert.Collection(runResult.TrackedSteps["Classes"],
2509Assert.Collection(runResult.TrackedSteps["ParseOptions"],
2529Assert.Collection(runResult.TrackedSteps["ParseOptions"],
2636Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2640Assert.Collection(step.Outputs,
2652Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2656Assert.Collection(step.Outputs,
2674Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2678Assert.Collection(step.Outputs,
2724Assert.Collection(step.Outputs,
2740Assert.Collection(step.Outputs,
2756Assert.Collection(step.Outputs,
2777Assert.Collection(step.Outputs,
2793Assert.Collection(step.Outputs,
2809Assert.Collection(step.Outputs,
2833Assert.Collection(step.Outputs,
2849Assert.Collection(step.Outputs,
2865Assert.Collection(step.Outputs,
2914Assert.Collection(step.Outputs,
2931Assert.Collection(step.Outputs,
2952Assert.Collection(step.Outputs,
2969Assert.Collection(step.Outputs,
2994Assert.Collection(step.Outputs,
3011Assert.Collection(step.Outputs,
3036Assert.Collection(step.Outputs,
3053Assert.Collection(step.Outputs,
4598Assert.Collection(runResult.Results,
4616Assert.Collection(runResult.Results,
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (59)
82Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
161Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
191Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
221Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
248Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
275Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
303Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
334Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
370Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
409Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
438Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
471Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
504Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
536Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
568Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
599Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
630Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
631step => Assert.Collection(step.Outputs,
663Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
694Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
695step => Assert.Collection(step.Outputs,
723Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
757Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
786Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
823Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
860Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
897Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
934Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1042Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1079Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1117Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1155Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1193Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1231Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1428Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1435Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1475Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1482Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1522Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1528Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1535Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1574Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1581Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1622Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1623step => Assert.Collection(step.Outputs,
1631Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1634Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs,
1637Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs,
1675Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1676step => Assert.Collection(step.Outputs, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })),
1677step => Assert.Collection(step.Outputs, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" })));
1683Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1686Assert.Collection(runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"],
1689Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"],
1692Assert.Collection(runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"],
1695Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1739Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1787Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1794Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (64)
53Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
85Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
161Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
189Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
221Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
253Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
287Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
320Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
346Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
372Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
398Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
431Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
459Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
545Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
578Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
610Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
809Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
840Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
870Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
955Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
984Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1016Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1023Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1056Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1063Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1102Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1109Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1119Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1155Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1165Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1171Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1216Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1222Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1229Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1261Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1272Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1278Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1314Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1321Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1328Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1334Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1372Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1379Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1382Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1388Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1428Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1434Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1441Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1473Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1478Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1484Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1516Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1525Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1531Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1567Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1577Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1583Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1588Assert.Collection(runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"],
1591Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1595Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1628Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1639Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1645Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1652Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
SourceGeneration\StateTableTests.cs (37)
379Assert.Collection(table.Steps,
383Assert.Collection(step.Inputs,
402Assert.Collection(step.Outputs,
446Assert.Collection(step.Inputs,
465Assert.Collection(step.Outputs,
493Assert.Collection(step.Inputs,
512Assert.Collection(step.Outputs,
556Assert.Collection(table.Steps,
560Assert.Collection(step.Inputs,
579Assert.Collection(step.Outputs,
638Assert.Collection(table.Steps,
642Assert.Collection(step.Inputs,
649Assert.Collection(step.Outputs,
673Assert.Collection(table.Steps,
677Assert.Collection(step.Inputs,
684Assert.Collection(step.Outputs,
711Assert.Collection(table.Steps,
715Assert.Collection(step.Inputs,
722Assert.Collection(step.Outputs,
750Assert.Collection(table.Steps,
754Assert.Collection(step.Inputs,
761Assert.Collection(step.Outputs,
790Assert.Collection(table.Steps,
842Assert.Collection(table.Steps,
844Assert.Collection(step.Outputs, output => Assert.Equal((1, IncrementalStepRunReason.Cached), output)),
846Assert.Collection(step.Outputs, output => Assert.Equal((2, IncrementalStepRunReason.Removed), output)),
848Assert.Collection(step.Outputs, output => Assert.Equal((3, IncrementalStepRunReason.Removed), output)),
850Assert.Collection(step.Outputs, output => Assert.Equal((4, IncrementalStepRunReason.New), output)),
852Assert.Collection(step.Outputs, output => Assert.Equal((5, IncrementalStepRunReason.New), output)),
854Assert.Collection(step.Outputs, output => Assert.Equal((6, IncrementalStepRunReason.New), output)));
877Assert.Collection(table.Steps,
882Assert.Collection(step.Outputs, output => Assert.Equal(((1, 0), IncrementalStepRunReason.Cached), output));
888Assert.Collection(step.Outputs, output => Assert.Equal(((2, 0), IncrementalStepRunReason.Removed), output));
894Assert.Collection(step.Outputs, output => Assert.Equal(((3, 0), IncrementalStepRunReason.Removed), output));
900Assert.Collection(step.Outputs, output => Assert.Equal(((4, 0), IncrementalStepRunReason.New), output));
906Assert.Collection(step.Outputs, output => Assert.Equal(((5, 0), IncrementalStepRunReason.New), output));
912Assert.Collection(step.Outputs, output => Assert.Equal(((6, 0), IncrementalStepRunReason.New), output));
SourceGeneration\SyntaxAwareGeneratorTests.cs (84)
1032Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1033step => Assert.Collection(step.Outputs,
1035step => Assert.Collection(step.Outputs,
1037step => Assert.Collection(step.Outputs,
1052Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1053step => Assert.Collection(step.Outputs,
1055step => Assert.Collection(step.Outputs,
1057step => Assert.Collection(step.Outputs,
1059step => Assert.Collection(step.Outputs,
1061step => Assert.Collection(step.Outputs,
1109Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1110step => Assert.Collection(step.Outputs,
1112step => Assert.Collection(step.Outputs,
1114step => Assert.Collection(step.Outputs,
1116step => Assert.Collection(step.Outputs,
1118step => Assert.Collection(step.Outputs,
1131Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1132step => Assert.Collection(step.Outputs,
1134step => Assert.Collection(step.Outputs,
1136step => Assert.Collection(step.Outputs,
1138step => Assert.Collection(step.Outputs,
1140step => Assert.Collection(step.Outputs,
1239Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1240step => Assert.Collection(step.Outputs,
1242step => Assert.Collection(step.Outputs,
1244step => Assert.Collection(step.Outputs,
1268Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1269step => Assert.Collection(step.Outputs,
1271step => Assert.Collection(step.Outputs,
1273step => Assert.Collection(step.Outputs,
1414Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1415step => Assert.Collection(step.Outputs,
1417step => Assert.Collection(step.Outputs,
1419step => Assert.Collection(step.Outputs,
1444Assert.Collection(results.Results[0].TrackedSteps["Syntax"],
1445step => Assert.Collection(step.Outputs,
1447step => Assert.Collection(step.Outputs,
1449step => Assert.Collection(step.Outputs,
1451Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1452step => Assert.Collection(step.Outputs,
1454step => Assert.Collection(step.Outputs,
1456step => Assert.Collection(step.Outputs,
1477Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1478step => Assert.Collection(step.Outputs,
1480step => Assert.Collection(step.Outputs,
1482step => Assert.Collection(step.Outputs,
1528Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1529step => Assert.Collection(step.Outputs,
1531step => Assert.Collection(step.Outputs,
1533step => Assert.Collection(step.Outputs,
1543Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1544step => Assert.Collection(step.Outputs,
1546step => Assert.Collection(step.Outputs,
1548step => Assert.Collection(step.Outputs,
1699Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1700step => Assert.Collection(step.Outputs,
1702step => Assert.Collection(step.Outputs,
1704step => Assert.Collection(step.Outputs,
1706Assert.Collection(results.Results[0].TrackedSteps["Output"],
1707step => Assert.Collection(step.Outputs,
1709step => Assert.Collection(step.Outputs,
1711step => Assert.Collection(step.Outputs,
1713step => Assert.Collection(step.Outputs,
1715step => Assert.Collection(step.Outputs,
1717step => Assert.Collection(step.Outputs,
1758Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1759step => Assert.Collection(step.Outputs,
1761step => Assert.Collection(step.Outputs,
1763step => Assert.Collection(step.Outputs,
1765Assert.Collection(results.Results[0].TrackedSteps["Output"],
1766step => Assert.Collection(step.Outputs,
1768step => Assert.Collection(step.Outputs,
1770step => Assert.Collection(step.Outputs,
1812Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1813step => Assert.Collection(step.Outputs,
1815step => Assert.Collection(step.Outputs,
1817step => Assert.Collection(step.Outputs,
1819step => Assert.Collection(step.Outputs,
1821step => Assert.Collection(step.Outputs,
1823step => Assert.Collection(step.Outputs,
1825Assert.Collection(results.Results[0].TrackedSteps["Output"],
1826step => Assert.Collection(step.Outputs,
1828step => Assert.Collection(step.Outputs,
1830step => Assert.Collection(step.Outputs,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
Microsoft.DotNet.XliffTasks.Tests (1)
Microsoft.DotNet.XUnitAssert.Tests (5)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (23)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.Hosting.Testing.Tests (9)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly.Tests (9)
Microsoft.Gen.Metrics.Generated.Tests (8)
MetricTests.cs (4)
56Assert.Collection(measurements, x => Assert.Equal(10L, x.Value), x => Assert.Equal(5L, x.Value));
83Assert.Collection(measurements, x => Assert.Equal(12L, x.Value), x => Assert.Equal(6L, x.Value));
111Assert.Collection(measurements, x => Assert.Equal(10, x.Value), x => Assert.Equal(5, x.Value));
139Assert.Collection(measurements, x => Assert.Equal(12, x.Value), x => Assert.Equal(6, x.Value));
MetricTests.Ext.cs (4)
42Assert.Collection(measurements, x => Assert.Equal(10L, x.Value), x => Assert.Equal(5L, x.Value));
67Assert.Collection(measurements, x => Assert.Equal(12L, x.Value), x => Assert.Equal(6L, x.Value));
94Assert.Collection(measurements, x => Assert.Equal(10, x.Value), x => Assert.Equal(5, x.Value));
121Assert.Collection(measurements, x => Assert.Equal(12, x.Value), x => Assert.Equal(6, x.Value));
Microsoft.JSInterop.Tests (2)
Mvc.Analyzers.Test (10)
Mvc.Api.Analyzers.Test (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs (1)
73Assert.Collection(
Sockets.FunctionalTests (3)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
xunit.assert (1)