4413 references to IsType
Aspire.Azure.AI.OpenAI.Tests (7)
Aspire.Hosting.Nats.Tests (1)
Aspire.Hosting.Tests (5)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (7)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (7)
Aspire.OpenAI.Tests (1)
Aspire.Oracle.EntityFrameworkCore.Tests (7)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (7)
Client.ChannelLayer.IntegrationTests (2)
IIS.FunctionalTests (4)
IIS.Tests (8)
InMemory.FunctionalTests (8)
InProcessWebSite (1)
Interop.FunctionalTests (3)
Microsoft.Analyzers.Local.Tests (7)
Microsoft.AspNetCore.App.UnitTests (4)
Microsoft.AspNetCore.Authentication.Negotiate.Test (4)
Microsoft.AspNetCore.Authorization.Test (2)
Microsoft.AspNetCore.Components.Authorization.Tests (18)
Microsoft.AspNetCore.Components.Endpoints.Tests (18)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.Server.Tests (9)
Microsoft.AspNetCore.Components.Tests (30)
RenderTreeUpdaterTest.cs (7)
33frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
61frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
94frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
97frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4),
125frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1));
149frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1));
183frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4));
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (16)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Html.Abstractions.Tests (18)
HtmlContentBuilderTest.cs (14)
24Assert.IsType<string>(result);
72var testHtmlContent = Assert.IsType<TestHtmlContent>(result);
130entry => Assert.Equal("some-content", Assert.IsType<string>(entry)),
131entry => Assert.Equal(new TestHtmlContent("hello"), Assert.IsType<TestHtmlContent>(entry)),
132entry => Assert.Equal("Test", Assert.IsType<string>(entry)));
158entry => Assert.Equal("some-content", Assert.IsType<string>(entry)),
159entry => Assert.Equal(new TestHtmlContent("hello"), Assert.IsType<TestHtmlContent>(entry)),
160entry => Assert.Equal("Test", Assert.IsType<string>(entry)));
182entry => Assert.Equal("some-content", Assert.IsType<string>(entry)),
183entry => Assert.Equal(new TestHtmlContent("hello"), Assert.IsType<TestHtmlContent>(entry)),
184entry => Assert.Equal("Test", Assert.IsType<string>(entry)));
210entry => Assert.Equal("some-content", Assert.IsType<string>(entry)),
211entry => Assert.Equal(new TestHtmlContent("hello"), Assert.IsType<TestHtmlContent>(entry)),
212entry => Assert.Equal("Test", Assert.IsType<string>(entry)));
Microsoft.AspNetCore.Http.Abstractions.Tests (72)
RouteValueDictionaryTests.cs (67)
53var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
54var otherStorage = Assert.IsType<KeyValuePair<string, object?>[]>(other._arrayStorage);
122Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
128var address = Assert.IsType<Address>(kvp.Value);
144Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
224var value = Assert.IsType<bool>(kvp.Value);
245var value = Assert.IsType<bool>(kvp.Value);
297var value = Assert.IsType<bool>(kvp.Value);
303var value = Assert.IsType<bool>(kvp.Value);
520Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
537Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
554Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
581Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
598Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
612Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
626Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
646Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
663Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
680Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
724Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
738Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
752Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
769Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
783Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
797Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
814Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
828Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
858Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
886Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
907Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
928Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
948Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1008Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1028Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1047Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1066Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1086Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1255Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1272Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1289Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1314Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1334Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1354Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1374Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1395Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1451Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1466Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1481Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1499Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1517Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1535Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1595Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1612Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1629Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1648Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1668Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1688Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1713Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1738Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1763Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1997Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2015Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2033Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2046var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2056storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2070var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
2077storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (39)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Results.Tests (32)
Microsoft.AspNetCore.Identity.Test (11)
Microsoft.AspNetCore.InternalTesting.Tests (6)
Microsoft.AspNetCore.JsonPatch.Tests (4)
Microsoft.AspNetCore.Mvc.Abstractions.Test (6)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
Microsoft.AspNetCore.Mvc.Core.Test (522)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (32)
21var defaultMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
23var attribute = Assert.IsType<ModelAttribute>(Assert.Single(defaultMetadata.Attributes.Attributes));
34var metadata1 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType)));
35var metadata2 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType)));
144var metadata1 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType)));
145var metadata2 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType)));
161var defaultMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
164Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(attributes[0]).Value);
165Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(attributes[1]).Value);
212var defaultMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
215Assert.IsType<SerializableAttribute>(Assert.Single(defaultMetadata.Attributes.Attributes));
231var defaultMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
237var modelAttribute = Assert.IsType<ModelAttribute>(attribute);
242var modelAttribute = Assert.IsType<ModelAttribute>(attribute);
280var defaultModelMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
284a => Assert.Equal("OnParameter", Assert.IsType<ModelAttribute>(a).Value),
285a => Assert.Equal("OnDerivedType", Assert.IsType<ModelAttribute>(a).Value),
286a => Assert.Equal("OnType", Assert.IsType<ModelAttribute>(a).Value));
294var defaultPropertyMetadata = Assert.IsType<DefaultModelMetadata>(p);
297a => Assert.Equal("OnDerivedProperty", Assert.IsType<ModelAttribute>(a).Value));
303var defaultPropertyMetadata = Assert.IsType<DefaultModelMetadata>(p);
306a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).Value),
307a => Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(a).Value));
364var defaultModelMetadata = Assert.IsType<DefaultModelMetadata>(metadata);
368a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).Value),
369a => Assert.Equal("OnDerivedType", Assert.IsType<ModelAttribute>(a).Value),
370a => Assert.Equal("OnType", Assert.IsType<ModelAttribute>(a).Value));
378var defaultPropertyMetadata = Assert.IsType<DefaultModelMetadata>(p);
381a => Assert.Equal("OnDerivedProperty", Assert.IsType<ModelAttribute>(a).Value));
387var defaultPropertyMetadata = Assert.IsType<DefaultModelMetadata>(p);
390a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).Value),
391a => Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(a).Value));
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.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors.Test (10)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (12)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (35)
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
Microsoft.AspNetCore.Mvc.IntegrationTests (399)
DictionaryModelBinderIntegrationTest.cs (26)
41var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
81var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
119var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
172var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
209var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
353var model = Assert.IsType<Dictionary<string, int>>(result.Model);
390var model = Assert.IsType<Dictionary<string, int>>(result.Model);
421var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
526var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
564var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
602var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
637var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
672var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
724var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
763var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
803var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
843var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
927var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
961var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
995var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1034var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1073var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1255var model = Assert.IsType<Dictionary<string, string>>(modelBindingResult.Model);
1309var model = Assert.IsType<Dictionary<string, NonNullPerson>>(modelBindingResult.Model);
1416var model = Assert.IsType<Dictionary<string, DayOfWeek>>(modelBindingResult.Model);
1462var model = Assert.IsType<Dictionary<string, NonNullPersonWithRequiredProperties>>(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (51)
Microsoft.AspNetCore.Mvc.Razor.Test (44)
Microsoft.AspNetCore.Mvc.RazorPages.Test (308)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
Microsoft.AspNetCore.Mvc.Test (66)
MvcOptionsSetupTest.cs (59)
36Assert.IsType<RazorViewEngine>(viewEngine);
48binder => Assert.IsType<BinderTypeModelBinderProvider>(binder),
49binder => Assert.IsType<ServicesModelBinderProvider>(binder),
50binder => Assert.IsType<BodyModelBinderProvider>(binder),
51binder => Assert.IsType<HeaderModelBinderProvider>(binder),
52binder => Assert.IsType<FloatingPointTypeModelBinderProvider>(binder),
53binder => Assert.IsType<EnumTypeModelBinderProvider>(binder),
54binder => Assert.IsType<DateTimeModelBinderProvider>(binder),
55binder => Assert.IsType<SimpleTypeModelBinderProvider>(binder),
56binder => Assert.IsType<TryParseModelBinderProvider>(binder),
57binder => Assert.IsType<CancellationTokenModelBinderProvider>(binder),
58binder => Assert.IsType<ByteArrayModelBinderProvider>(binder),
59binder => Assert.IsType<FormFileModelBinderProvider>(binder),
60binder => Assert.IsType<FormCollectionModelBinderProvider>(binder),
61binder => Assert.IsType<KeyValuePairModelBinderProvider>(binder),
62binder => Assert.IsType<DictionaryModelBinderProvider>(binder),
63binder => Assert.IsType<ArrayModelBinderProvider>(binder),
64binder => Assert.IsType<CollectionModelBinderProvider>(binder),
65binder => Assert.IsType<ComplexObjectModelBinderProvider>(binder));
77provider => Assert.IsType<FormValueProviderFactory>(provider),
78provider => Assert.IsType<RouteValueProviderFactory>(provider),
79provider => Assert.IsType<QueryStringValueProviderFactory>(provider),
80provider => Assert.IsType<JQueryFormValueProviderFactory>(provider),
81provider => Assert.IsType<FormFileValueProviderFactory>(provider));
92formatter => Assert.IsType<HttpNoContentOutputFormatter>(formatter),
93formatter => Assert.IsType<StringOutputFormatter>(formatter),
94formatter => Assert.IsType<StreamOutputFormatter>(formatter),
95formatter => Assert.IsType<SystemTextJsonOutputFormatter>(formatter));
107formatter => Assert.IsType<SystemTextJsonInputFormatter>(formatter));
129validator => Assert.IsType<DefaultModelValidatorProvider>(validator),
130validator => Assert.IsType<DataAnnotationsModelValidatorProvider>(validator));
141validator => Assert.IsType<DefaultClientModelValidatorProvider>(validator),
142validator => Assert.IsType<DataAnnotationsClientModelValidatorProvider>(validator),
143validator => Assert.IsType<NumericClientModelValidatorProvider>(validator));
169provider => Assert.IsType<ExcludeBindingMetadataProvider>(provider),
170provider => Assert.IsType<DefaultBindingMetadataProvider>(provider),
171provider => Assert.IsType<DefaultValidationMetadataProvider>(provider),
174var specialParameter = Assert.IsType<BindingSourceMetadataProvider>(provider);
180var formFileParameter = Assert.IsType<BindingSourceMetadataProvider>(provider);
186var formCollectionParameter = Assert.IsType<BindingSourceMetadataProvider>(provider);
192var formFileParameter = Assert.IsType<BindingSourceMetadataProvider>(provider);
198var formFileParameter = Assert.IsType<BindingSourceMetadataProvider>(provider);
204var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
209var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
214var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
219var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
224var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
229var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
234var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
239var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
244var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
249var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
254var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
259var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
262provider => Assert.IsType<DataAnnotationsMetadataProvider>(provider),
263provider => Assert.IsType<DataMemberRequiredBindingMetadataProvider>(provider),
266var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
271var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);
274provider => Assert.IsType<HasValidatorsValidationMetadataProvider>(provider));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (120)
Microsoft.AspNetCore.OpenApi.Tests (19)
Microsoft.AspNetCore.Razor.Test (12)
TagHelpers\DefaultTagHelperContentTest.cs (12)
118Assert.Equal("some-content", Assert.IsType<string>(items[0]));
119Assert.Equal("hello", Assert.IsType<HtmlString>(items[1]).Value);
120Assert.Equal("Test", Assert.IsType<string>(items[2]));
144Assert.Equal("some-content", Assert.IsType<string>(items[0]));
145Assert.Equal("hello", Assert.IsType<HtmlString>(items[1]).Value);
146Assert.Equal("Test", Assert.IsType<string>(items[2]));
168Assert.Equal("some-content", Assert.IsType<string>(items[0]));
169Assert.Equal("hello", Assert.IsType<HtmlString>(items[1]).Value);
170Assert.Equal("Test", Assert.IsType<string>(items[2]));
196Assert.Equal("some-content", Assert.IsType<string>(items[0]));
197Assert.Equal("hello", Assert.IsType<HtmlString>(items[1]).Value);
198Assert.Equal("Test", Assert.IsType<string>(items[2]));
Microsoft.AspNetCore.RequestDecompression.Tests (3)
Microsoft.AspNetCore.Routing.Tests (150)
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (8)
361e => Assert.Equal("gzip", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue),
362e => Assert.Equal("br", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue),
365Assert.Equal("identity", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
371Assert.Equal("", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
396Assert.Equal("gzip", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
403Assert.Equal("br", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
410Assert.Equal("identity", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
416Assert.Equal("", Assert.IsType<NegotiationMatcherPolicy<ContentEncodingMetadata>.NegotiationEdgeKey>(e.State).NegotiationValue);
Patterns\RoutePatternFactoryTest.cs (15)
156c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy),
160c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy));
169c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy),
177c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy));
206c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy));
213c => Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy));
242c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
243c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
244c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()));
280c => Assert.Equal("^(fizz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()));
287c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
288c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
289c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
374var regex = Assert.IsType<RegexRouteConstraint>(Assert.Single(kvp.Value).ParameterPolicy);
741var part = Assert.IsType<RoutePatternLiteralPart>(Assert.Single(segment.Parts));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (15)
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.Shared.Tests (56)
AdaptiveCapacityDictionaryTests.cs (47)
138Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
155Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
172Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
199Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
219Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
236Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
253Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
283Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
297Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
314Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
328Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
345Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
359Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
392Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
413Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
434Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
454Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
484Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
504Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
523Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
542Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
562Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
605Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
622Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
639Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
664Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
684Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
704Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
724Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
745Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
789Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
807Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
825Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
872Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
892Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
912Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
937Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
962Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
987Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1127Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1145Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1163Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1176var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1206var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1236var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1266var storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
1273storage = Assert.IsType<KeyValuePair<string, object?>[]>(dict._arrayStorage);
Microsoft.AspNetCore.SignalR.Client.Tests (13)
Microsoft.AspNetCore.SignalR.Common.Tests (22)
Microsoft.AspNetCore.SignalR.Specification.Tests (19)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Microsoft.AspNetCore.SignalR.Tests (144)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.Testing.Tests (7)
Microsoft.AspNetCore.Tests (12)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build.Engine.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
SourceGeneration\GeneratorDriverTests.cs (20)
1661Assert.IsType<InvalidOperationException>(e.InnerException);
2721Assert.Equal("path1.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2737Assert.Equal("path2.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2753Assert.Equal("path3.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2774Assert.Equal("path1.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2790Assert.Equal("path2.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2806Assert.Equal("path3.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2830Assert.Equal("path1.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2846Assert.Equal("path4.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2862Assert.Equal("path3.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2911Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2928Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2949Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2966Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
2991Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
3008Assert.Equal("path.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
3033Assert.Equal("path2.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
3050Assert.Equal("path2.txt", Assert.IsType<InMemoryAdditionalText>(consumedInput.Value).Path);
4583Assert.IsType<ArgumentException>(result.Exception);
4636var exception = Assert.IsType<InvalidOperationException>(result.Exception);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (82)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
Microsoft.Data.Analysis.Tests (16)
Microsoft.DotNet.XUnitAssert.Tests (552)
Microsoft.Extensions.Caching.Hybrid.Tests (22)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Redaction.Tests (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Microsoft.Extensions.FileProviders.Embedded.Tests (9)
Microsoft.Extensions.Hosting.Testing.Tests (21)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly.Tests (27)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (27)
62h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
63h => Assert.IsType<PolicyHttpMessageHandler>(h),
64h => Assert.IsType<LoggingHttpMessageHandler>(h));
97h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
98h => Assert.IsType<PolicyHttpMessageHandler>(h),
99h => Assert.IsType<LoggingHttpMessageHandler>(h));
135h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
136h => Assert.IsType<PolicyHttpMessageHandler>(h),
137h => Assert.IsType<LoggingHttpMessageHandler>(h));
176h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
177h => Assert.IsType<PolicyHttpMessageHandler>(h),
178h => Assert.IsType<LoggingHttpMessageHandler>(h));
220h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
221h => Assert.IsType<PolicyHttpMessageHandler>(h),
222h => Assert.IsType<LoggingHttpMessageHandler>(h));
273h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
274h => Assert.IsType<PolicyHttpMessageHandler>(h),
275h => Assert.IsType<LoggingHttpMessageHandler>(h));
318h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
319h => Assert.IsType<PolicyHttpMessageHandler>(h),
320h => Assert.IsType<LoggingHttpMessageHandler>(h));
361h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
362h => Assert.IsType<PolicyHttpMessageHandler>(h),
363h => Assert.IsType<LoggingHttpMessageHandler>(h));
432h => Assert.IsType<LoggingScopeHttpMessageHandler>(h),
433h => Assert.IsType<PolicyHttpMessageHandler>(h),
434h => Assert.IsType<LoggingHttpMessageHandler>(h));
Microsoft.Extensions.ObjectPool.Tests (2)
Microsoft.Extensions.Options.Contextual.Tests (2)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.JSInterop.Tests (6)
Microsoft.ML.IntegrationTests (14)
System.Drawing.Common.Tests (54)
System.Private.Windows.Core.TestUtilities (1)
System.ServiceModel.Http.Tests (1)
System.ServiceModel.Primitives.Tests (39)
System.Windows.Forms.Design.Tests (244)
System.Windows.Forms.Interop.Tests (1)
System.Windows.Forms.Primitives.Tests (26)
System.Windows.Forms.Tests (631)
System.Xaml.Tests (19)