664 references to IsAssignableFrom
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
AspireRedisDistributedCacheExtensionsTests.cs (1)
24Assert.IsAssignableFrom<RedisCache>(cache);
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
227Assert.IsAssignableFrom<RedisCache>(distributedCache);
AuthSamples.FunctionalTests (8)
HttpClientExtensions.cs (2)
22var submitButton = Assert.IsAssignableFrom<IHtmlElement>(submitElement); 36var element = Assert.IsAssignableFrom<IHtmlInputElement>(form[kvp.Key]);
TestAssert.cs (6)
27return Assert.IsAssignableFrom<IHtmlFormElement>(form); 33return Assert.IsAssignableFrom<IHtmlAnchorElement>(element); 51return Assert.IsAssignableFrom<IHtmlElement>(element); 57return Assert.IsAssignableFrom<IHtmlFormElement>(form); 64return Assert.IsAssignableFrom<IHtmlHtmlElement>(fragment); 80return Assert.IsAssignableFrom<IHtmlDocument>(document);
Microsoft.AspNetCore.Authorization.Test (9)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (9)
46var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(Assert.Single(endpointModel.Metadata)); 65var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(Assert.Single(endpointModel.Metadata)); 84var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(Assert.Single(endpointModel.Metadata)); 103var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(Assert.Single(endpointModel.Metadata)); 137var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(endpointModel.Metadata[0]); 160var authMetadata = Assert.IsAssignableFrom<IAuthorizeData>(endpointModel.Metadata[0]); 163var policy = Assert.IsAssignableFrom<AuthorizationPolicy>(endpointModel.Metadata[1]); 189var policy = Assert.IsAssignableFrom<AuthorizationPolicy>(endpointModel.Metadata[1]); 235Assert.IsAssignableFrom<IAllowAnonymous>(Assert.Single(endpointModel.Metadata));
Microsoft.AspNetCore.Components.Authorization.Tests (2)
AuthorizeRouteViewTest.cs (2)
294component => Assert.IsAssignableFrom<AuthorizeViewCore>(component), 325component => Assert.IsAssignableFrom<AuthorizeViewCore>(component),
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Binding\FormDataMapperTests.cs (3)
1948var formFileResult = Assert.IsAssignableFrom<IReadOnlyList<IFormFile>>(result); 2026var browserFile = Assert.IsAssignableFrom<IBrowserFile>(result); 2059var browserFiles = Assert.IsAssignableFrom<IReadOnlyList<IBrowserFile>>(result);
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (8)
76var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 97var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 119var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 141var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 164var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 185var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 190var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 211var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources;
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (2)
DataProtectionCommonExtensionsTests.cs (2)
254Assert.IsAssignableFrom<EncoderFallbackException>(ex.InnerException); 296Assert.IsAssignableFrom<DecoderFallbackException>(ex.InnerException);
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
122Assert.IsAssignableFrom<MockException>(ex.InnerException);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (1)
265Assert.IsAssignableFrom<OperationCanceledException>(e);
Microsoft.AspNetCore.Hosting.Tests (10)
HostingApplicationDiagnosticsTests.cs (4)
547Assert.IsAssignableFrom<HttpContext>(o); 581Assert.IsAssignableFrom<HttpContext>(o); 1002Assert.IsAssignableFrom<HttpContext>(context); 1086Assert.IsAssignableFrom<T>(value);
HostingEnvironmentExtensionsTests.cs (6)
28Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider); 29Assert.IsAssignableFrom<PhysicalFileProvider>(env.WebRootFileProvider); 41Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider); 42Assert.IsAssignableFrom<PhysicalFileProvider>(env.WebRootFileProvider); 54Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider); 55Assert.IsAssignableFrom<NullFileProvider>(env.WebRootFileProvider);
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
ProblemDetailsJsonConverterTest.cs (2)
28Assert.IsAssignableFrom<JsonException>(ex); 123Assert.IsAssignableFrom<JsonNode>(kvp.Value!);
Microsoft.AspNetCore.Http.Extensions.Tests (36)
HttpMetricsEndpointConventionBuilderExtensionsTests.cs (1)
17Assert.IsAssignableFrom<IDisableHttpMetricsMetadata>(Assert.Single(builder.Metadata));
JsonOptionsTests.cs (1)
27Assert.IsAssignableFrom<IJsonTypeInfoResolver>(options.TypeInfoResolver);
RequestDelegateFactoryTests.cs (2)
2536var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.EndpointMetadata)); 2548var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.EndpointMetadata));
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (17)
42var formFilesArgument = Assert.IsAssignableFrom<IFormFileCollection>(httpContext.Items["formFiles"]); 77var formFiles = Assert.IsAssignableFrom<IFormFileCollection>(httpContext.Items["formFiles"]); 112var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 150var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 188var file1Argument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file1"]); 193var file2Argument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file2"]); 266var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 303var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 413var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 460var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 464var traceIdArgument = Assert.IsAssignableFrom<TraceIdentifier>(httpContext.Items["traceId"]); 505var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 509var traceIdArgument = Assert.IsAssignableFrom<TraceIdentifier>(httpContext.Items["traceId"]); 557var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["formFiles"]); 604var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["formFiles"]); 835var formFilesArgument = Assert.IsAssignableFrom<FormFileCollection>(httpContext.Items["FormFilesArgument"]); 836var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["FormArgument"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (14)
52var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State); 60var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State); 68var log3Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[2].State); 76var log4Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[3].State); 115var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State); 123var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State); 235var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State); 243var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State); 315var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State); 323var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State); 405var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State); 454var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State); 534var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State); 614var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State);
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (1)
186var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(log.State);
Microsoft.AspNetCore.Http.Results.Tests (75)
AcceptedAtRouteOfTResultTests.cs (3)
169var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new AcceptedAtRoute<string>(routeValues, null)); 185var result = Assert.IsAssignableFrom<IValueHttpResult>(new AcceptedAtRoute<string>(routeValues, value)); 202var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new AcceptedAtRoute<string>(routeValues, value));
AcceptedAtRouteResultTests.cs (1)
115var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new AcceptedAtRoute(null));
AcceptedOfTResultTests.cs (3)
103var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Accepted<string>("location", null)); 114var result = Assert.IsAssignableFrom<IValueHttpResult>(new Accepted<string>("location", value)); 126var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new Accepted<string>("location", value));
AcceptedResultTests.cs (1)
72var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Accepted("location"));
BadRequestOfTResultTests.cs (3)
146var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new BadRequest<string>(null)); 157var result = Assert.IsAssignableFrom<IValueHttpResult>(new BadRequest<string>(value)); 169var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new BadRequest<string>(value));
BadRequestResultTests.cs (1)
85var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new BadRequest());
ConflictOfTResultTests.cs (3)
124var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Conflict<string>(null)); 135var result = Assert.IsAssignableFrom<IValueHttpResult>(new Conflict<string>(value)); 147var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new Conflict<string>(value));
ConflictResultTests.cs (1)
86var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Conflict());
ContentResultTests.cs (3)
144var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new ContentHttpResult("content", contentType)); 155var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new ContentHttpResult("content", contentType, StatusCodes.Status202Accepted)); 166var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new ContentHttpResult("content", contentType));
CreatedAtRouteOfTResultTests.cs (3)
138var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(rawResult); 153var result = Assert.IsAssignableFrom<IValueHttpResult>(rawResult); 169var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(rawResult);
CreatedAtRouteResultTests.cs (1)
118var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(rawResult);
CreatedOfTResultTests.cs (3)
141var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Created<string>(location, null)); 153var result = Assert.IsAssignableFrom<IValueHttpResult>(new Created<string>(location, value)); 166var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new Created<string>(location, value));
CreatedResultTests.cs (1)
106var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Created(location));
FileContentResultTests.cs (2)
45var result = Assert.IsAssignableFrom<IFileHttpResult>(new FileContentHttpResult(Array.Empty<byte>(), contentType) { FileDownloadName = downloadName }); 58var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new FileContentHttpResult(Array.Empty<byte>(), contentType) { FileDownloadName = downloadName });
HttpFileStreamResultTests.cs (2)
100var result = Assert.IsAssignableFrom<IFileHttpResult>(new FileStreamHttpResult(new MemoryStream(), contentType) { FileDownloadName = downloadName }); 113var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new FileStreamHttpResult(new MemoryStream(), contentType) { FileDownloadName = downloadName });
InternalServerErrorOfTResultTests.cs (3)
146var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new InternalServerError<string>(null)); 157var result = Assert.IsAssignableFrom<IValueHttpResult>(new InternalServerError<string>(value)); 169var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new InternalServerError<string>(value));
InternalServerErrorResultTests.cs (1)
85var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new InternalServerError());
JsonResultTests.cs (5)
261var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new JsonHttpResult<string>(null, jsonSerializerOptions: null, StatusCodes.Status200OK, contentType)); 272var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new JsonHttpResult<string>(null, jsonSerializerOptions: null, StatusCodes.Status202Accepted, contentType)); 283var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new JsonHttpResult<string>(null, jsonSerializerOptions: null, statusCode: null, contentType)); 295var result = Assert.IsAssignableFrom<IValueHttpResult>(new JsonHttpResult<string>(value, jsonSerializerOptions: null, statusCode: null, contentType)); 308var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new JsonHttpResult<string>(value, jsonSerializerOptions: null, statusCode: null, contentType));
NoContentResultTests.cs (1)
82var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new NoContent());
NotFoundOfTResultTests.cs (3)
106var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new NotFound<object>(null)); 117var result = Assert.IsAssignableFrom<IValueHttpResult>(new NotFound<string>(value)); 129var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new NotFound<string>(value));
NotFoundResultTests.cs (1)
81var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new NotFound());
OkOfTResultTests.cs (3)
123var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Ok<object>(null)); 134var result = Assert.IsAssignableFrom<IValueHttpResult>(new Ok<string>(value)); 146var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new Ok<string>(value));
OkResultTests.cs (1)
84var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Ok());
PhysicalFileResultTest.cs (2)
47var result = Assert.IsAssignableFrom<IFileHttpResult>(new PhysicalFileHttpResult("file.zip", contentType) { FileDownloadName = downloadName }); 60var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new PhysicalFileHttpResult("file.zip", contentType) { FileDownloadName = downloadName });
ProblemResultTests.cs (5)
206var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new ProblemHttpResult(new() { Status = StatusCodes.Status416RangeNotSatisfiable })); 214var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new ProblemHttpResult(new())); 225var result = Assert.IsAssignableFrom<IValueHttpResult>(new ProblemHttpResult(value)); 237var result = Assert.IsAssignableFrom<IValueHttpResult<ProblemDetails>>(new ProblemHttpResult(value)); 246var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new ProblemHttpResult(new()));
PushStreamResultTests.cs (2)
89var result = Assert.IsAssignableFrom<IFileHttpResult>(new PushStreamHttpResult(s => Task.CompletedTask, contentType) { FileDownloadName = downloadName }); 102var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new PushStreamHttpResult(s => Task.CompletedTask, contentType) { FileDownloadName = downloadName });
ResultsTests.cs (2)
1005Assert.IsAssignableFrom<JsonTypeInfo<string>>(result.JsonTypeInfo); 1033Assert.IsAssignableFrom<JsonTypeInfo<string>>(result.JsonTypeInfo);
StatusCodeResultTests.cs (1)
42var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new StatusCodeHttpResult(StatusCodes.Status406NotAcceptable));
TypedResultsTests.cs (1)
890Assert.IsAssignableFrom<JsonTypeInfo<object>>(result.JsonTypeInfo);
UnauthorizedResultTests.cs (1)
52var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new UnauthorizedHttpResult());
UnprocessableEntityOfTResultTests.cs (3)
123var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new UnprocessableEntity<object>(null)); 134var result = Assert.IsAssignableFrom<IValueHttpResult>(new UnprocessableEntity<string>(value)); 146var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new UnprocessableEntity<string>(value));
UnprocessableEntityResultTests.cs (1)
85var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new UnprocessableEntity());
Utf8ContentResultTests.cs (2)
73var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new Utf8ContentHttpResult("Hello"u8, contentType, statusCode: null)); 84var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new Utf8ContentHttpResult("Hello"u8, contentType, statusCode: StatusCodes.Status202Accepted));
ValidationProblemResultTests.cs (4)
134var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new ValidationProblem(new HttpValidationProblemDetails())); 145var result = Assert.IsAssignableFrom<IValueHttpResult>(new ValidationProblem(value)); 157var result = Assert.IsAssignableFrom<IValueHttpResult<HttpValidationProblemDetails>>(new ValidationProblem(value)); 169var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new ValidationProblem(new()));
VirtualFileResultTests.cs (2)
31var result = Assert.IsAssignableFrom<IFileHttpResult>(new VirtualFileHttpResult("~/file.zip", contentType) { FileDownloadName = downloadName }); 44var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new VirtualFileHttpResult("~/file.zip", contentType) { FileDownloadName = downloadName });
Microsoft.AspNetCore.Identity.FunctionalTests (10)
Extensions\HtmlAssert.cs (5)
15return Assert.IsAssignableFrom<IHtmlFormElement>(form); 21return Assert.IsAssignableFrom<IHtmlAnchorElement>(element); 39return Assert.IsAssignableFrom<IHtmlElement>(element); 45return Assert.IsAssignableFrom<IHtmlFormElement>(form); 52return Assert.IsAssignableFrom<IHtmlHtmlElement>(fragment);
Extensions\HttpClientExtensions.cs (2)
25var submitButton = Assert.IsAssignableFrom<IHtmlElement>(submitElement); 38var element = Assert.IsAssignableFrom<IHtmlInputElement>(form[kvp.Key]);
Extensions\ResponseAssert.cs (1)
28return Assert.IsAssignableFrom<IHtmlDocument>(document);
UserStories.cs (2)
186var link = Assert.IsAssignableFrom<IHtmlAnchorElement>(linkElement); 218var link = Assert.IsAssignableFrom<IHtmlAnchorElement>(linkElement);
Microsoft.AspNetCore.InternalTesting (1)
ExceptionAssertions.cs (1)
251return Assert.IsAssignableFrom<TException>(exception);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
819var descriptor = Assert.IsAssignableFrom<IParameterInfoParameterDescriptor>(nameParam.ParameterDescriptor);
Microsoft.AspNetCore.Mvc.Core.Test (28)
ApiExplorer\ApiConventionResultTest.cs (5)
108r => Assert.IsAssignableFrom<IApiDefaultResponseMetadataProvider>(r), 128r => Assert.IsAssignableFrom<IApiDefaultResponseMetadataProvider>(r), 151r => Assert.IsAssignableFrom<IApiDefaultResponseMetadataProvider>(r), 175r => Assert.IsAssignableFrom<IApiDefaultResponseMetadataProvider>(r), 199r => Assert.IsAssignableFrom<IApiDefaultResponseMetadataProvider>(r),
Filters\FilterCollectionTest.cs (4)
50Assert.Equal(17, Assert.IsAssignableFrom<IOrderedFilter>(added).Order); 63Assert.Equal(17, Assert.IsAssignableFrom<IOrderedFilter>(added).Order); 121Assert.Equal(17, Assert.IsAssignableFrom<IOrderedFilter>(added).Order); 134Assert.Equal(17, Assert.IsAssignableFrom<IOrderedFilter>(added).Order);
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
285Assert.IsAssignableFrom<IJsonTypeInfoResolver>(stjOutputFormatter.SerializerOptions.TypeInfoResolver);
Infrastructure\AsyncEnumerableReaderTest.cs (3)
43var collection = Assert.IsAssignableFrom<ICollection<string>>(readCollection); 61var collection = Assert.IsAssignableFrom<ICollection<int>>(readCollection); 166var collection = Assert.IsAssignableFrom<ICollection<object>>(readCollection);
JsonOptionsTest.cs (1)
26Assert.IsAssignableFrom<IJsonTypeInfoResolver>(options.TypeInfoResolver);
ModelBinding\Binders\CollectionModelBinderTest.cs (2)
86var list = Assert.IsAssignableFrom<IList<int>>(bindingContext.Result.Model); 143var list = Assert.IsAssignableFrom<IList<int>>(bindingContext.Result.Model);
ModelBinding\Binders\DictionaryModelBinderTest.cs (7)
45var dictionary = Assert.IsAssignableFrom<IDictionary<int, string>>(bindingContext.Result.Model); 153var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 187var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 224var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 311var resultDictionary = Assert.IsAssignableFrom<IDictionary<long, int>>(bindingContext.Result.Model); 361var resultDictionary = Assert.IsAssignableFrom<IDictionary<int, ModelWithProperties>>(bindingContext.Result.Model); 408var resultDictionary = Assert.IsAssignableFrom<SortedDictionary<string, string>>(bindingContext.Result.Model);
ModelBinding\Binders\FormCollectionModelBinderTest.cs (2)
34var form = Assert.IsAssignableFrom<IFormCollection>(bindingContext.Result.Model); 53var form = Assert.IsAssignableFrom<IFormCollection>(bindingContext.Result.Model);
ModelBinding\Binders\FormFileModelBinderTest.cs (3)
243var files = Assert.IsAssignableFrom<IList<IFormFile>>(bindingContext.Result.Model); 287var file = Assert.IsAssignableFrom<IFormFile>(bindingContext.Result.Model); 353var file = Assert.IsAssignableFrom<IFormFile>(bindingContext.Result.Model);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsModelValidatorProviderTest.cs (2)
55Assert.IsAssignableFrom<RequiredAttribute>(((DataAnnotationsModelValidator)providerContext.Results[0].Validator).Attribute); 56Assert.IsAssignableFrom<RequiredAttribute>(((DataAnnotationsModelValidator)providerContext.Results[1].Validator).Attribute);
Microsoft.AspNetCore.Mvc.IntegrationTests (16)
BodyValidationIntegrationTests.cs (1)
88var products = Assert.IsAssignableFrom<IEnumerable<ProductViewModel>>(result.Model);
FormCollectionModelBindingIntegrationTest.cs (3)
59var formCollection = Assert.IsAssignableFrom<IFormCollection>(boundPerson.Address.FileCollection); 106var formCollection = Assert.IsAssignableFrom<IFormCollection>(modelBindingResult.Model); 144var collection = Assert.IsAssignableFrom<IFormCollection>(modelBindingResult.Model);
FormFileModelBindingIntegrationTest.cs (7)
59var file = Assert.IsAssignableFrom<IFormFile>(boundPerson.Address.File); 106var file = Assert.IsAssignableFrom<IFormFile>(boundPerson.Address.File); 157var file = Assert.IsAssignableFrom<IFormFile>(boundPerson.Address.File); 219var file = Assert.IsAssignableFrom<IFormFile>(boundPerson.Address.File); 308var file = Assert.IsAssignableFrom<IFormFile>(vehicle.Spec); 375var file = Assert.IsAssignableFrom<IFormFile>(vehicle.BackupVehicle.Spec); 437var file = Assert.IsAssignableFrom<IFormFile>(boundPerson.Address.File);
ServicesModelBinderIntegrationTest.cs (5)
43var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 79var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 220var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 289var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 407Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (3)
43var collection = Assert.IsAssignableFrom<ICollection<string>>(readCollection); 61var collection = Assert.IsAssignableFrom<ICollection<int>>(readCollection); 166var collection = Assert.IsAssignableFrom<ICollection<object>>(readCollection);
Microsoft.AspNetCore.Mvc.Razor.Test (12)
RazorPageActivatorTest.cs (2)
72Assert.IsAssignableFrom<IHtmlHelper<object>>(instance.Html); 144Assert.IsAssignableFrom<IHtmlHelper<object>>(instance.Html);
RazorPageTest.cs (6)
998var htmlContent = Assert.IsAssignableFrom<IHtmlContent>(htmlAttribute.Value); 1005htmlContent = Assert.IsAssignableFrom<IHtmlContent>(allAttribute.Value); 1043var htmlContent = Assert.IsAssignableFrom<IHtmlContent>(htmlAttribute.Value); 1050htmlContent = Assert.IsAssignableFrom<IHtmlContent>(allAttribute.Value); 1089var htmlContent = Assert.IsAssignableFrom<IHtmlContent>(htmlAttribute.Value); 1096htmlContent = Assert.IsAssignableFrom<IHtmlContent>(allAttribute.Value);
RazorViewEngineTest.cs (3)
715Assert.IsAssignableFrom<IView>(result.View); 783Assert.IsAssignableFrom<IView>(result.View); 816Assert.IsAssignableFrom<IView>(result.View);
TagHelpers\UrlResolutionTagHelperTest.cs (1)
191var htmlContent = Assert.IsAssignableFrom<IHtmlContent>(attribute.Value);
Microsoft.AspNetCore.Mvc.RazorPages.Test (10)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (10)
35var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 56var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 77var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 99var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 122var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 145var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 166var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 171var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 192var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 197var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (44)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (10)
43var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 73var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 104var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 135var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 167var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 199var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 221var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 234var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata); 256var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 269var list = Assert.IsAssignableFrom<IReadOnlyList<ResourceAsset>>(metadata);
MemberExpressionCacheKeyComparerTest.cs (1)
192var memberExpression = Assert.IsAssignableFrom<MemberExpression>(expression.Body);
MemberExpressionCacheKeyTest.cs (1)
72var memberExpression = Assert.IsAssignableFrom<MemberExpression>(expression.Body);
Rendering\HtmlHelperFormExtensionsTest.cs (27)
297var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 334var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 367var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 409var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 453var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 493var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 529var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 567var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 607var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 648var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 693var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 739var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 785var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 827var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 871var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 914var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 952var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 986var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1023var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1061var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1095var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1134var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1177var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1221var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1265var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1305var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 1346var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer);
Rendering\HtmlHelperFormTest.cs (5)
131var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 181var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 243var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 293var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer); 321var writer = Assert.IsAssignableFrom<StringWriter>(htmlHelper.ViewContext.Writer);
Microsoft.AspNetCore.OpenApi.Tests (6)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
29Assert.IsAssignableFrom<IEndpointConventionBuilder>(returnedBuilder);
Extensions\OpenApiServiceCollectionExtensionsTests.cs (4)
23Assert.IsAssignableFrom<IServiceCollection>(returnedServices); 57Assert.IsAssignableFrom<IServiceCollection>(returnedServices); 90Assert.IsAssignableFrom<IServiceCollection>(returnedServices); 123Assert.IsAssignableFrom<IServiceCollection>(returnedServices);
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
114var defaultValue = Assert.IsAssignableFrom<OpenApiBoolean>(property.Value.Default);
Microsoft.AspNetCore.RequestDecompression.Tests (4)
RequestDecompressionMiddlewareTests.cs (3)
399Assert.IsAssignableFrom<InvalidOperationException>(exception); 502Assert.IsAssignableFrom<InvalidOperationException>(exception); 586Assert.IsAssignableFrom<InvalidOperationException>(exception);
SizeLimitedStreamTests.cs (1)
99Assert.IsAssignableFrom<InvalidOperationException>(exception);
Microsoft.AspNetCore.Routing.Tests (19)
Builder\GroupTest.cs (1)
19return Assert.IsAssignableFrom<EndpointDataSource>(Assert.Single(endpointRouteBuilder.DataSources));
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (12)
125Assert.IsAssignableFrom<HttpContext>(Assert.Single(invocationContext.Arguments)); 205var httpContext = Assert.IsAssignableFrom<HttpContext>(Assert.Single(invocationContext.Arguments)); 418Assert.IsAssignableFrom<IRouteDiagnosticsMetadata>(endpoint.Metadata[3]); 424var httpMethodMetadata = Assert.IsAssignableFrom<IHttpMethodMetadata>(metadata); 489m => Assert.IsAssignableFrom<MethodInfo>(m), 490m => Assert.IsAssignableFrom<IParameterBindingMetadata>(m), 491m => Assert.IsAssignableFrom<ParameterNameMetadata>(m), 494Assert.IsAssignableFrom<CustomEndpointMetadata>(m); 499Assert.IsAssignableFrom<CustomEndpointMetadata>(m); 503m => Assert.IsAssignableFrom<Attribute1>(m), 504m => Assert.IsAssignableFrom<Attribute2>(m), 505m => Assert.IsAssignableFrom<IRouteDiagnosticsMetadata>(m));
CompositeEndpointDataSourceTest.cs (1)
313m => Assert.IsAssignableFrom<IRouteDiagnosticsMetadata>(m));
EndpointRoutingMiddlewareTest.cs (1)
74Assert.IsAssignableFrom<HttpContext>(pair.Value);
RouteCollectionTest.cs (2)
252var namedRouter = Assert.IsAssignableFrom<INamedRouter>(pathData.Router); 286var namedRouter = Assert.IsAssignableFrom<INamedRouter>(pathData.Router);
RouteEndpointBuilderTest.cs (2)
47m => Assert.IsAssignableFrom<IRouteDiagnosticsMetadata>(m)); 67var metadata = Assert.IsAssignableFrom<IRouteDiagnosticsMetadata>(m);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
656Assert.IsAssignableFrom<CryptographicException>(ex.InnerException);
Microsoft.AspNetCore.Shared.Tests (2)
SecurityHelperTests.cs (2)
21Assert.IsAssignableFrom<ClaimsPrincipal>(user); 22Assert.IsAssignableFrom<ClaimsIdentity>(user.Identity);
Microsoft.AspNetCore.TestHost.Tests (3)
HttpContextBuilderTests.cs (1)
301Assert.IsAssignableFrom<InvalidOperationException>(ex.InnerException);
ResponseResetTests.cs (2)
126var rex = Assert.IsAssignableFrom<HttpResetTestException>(ex.GetBaseException()); 152var rex = Assert.IsAssignableFrom<HttpResetTestException>(ex.GetBaseException());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
3352Assert.IsAssignableFrom<ErrorTypeSymbol>(mTuple.TupleUnderlyingType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
1096Assert.IsAssignableFrom<ConstructorInitializerSyntax>(decl.Parent.Parent.Parent);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
43Assert.IsAssignableFrom<ILabeledOperation>(result.outer);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableReferenceTypesTests.cs (1)
111008Assert.IsAssignableFrom<PENamedTypeSymbol>(c);
Semantics\TopLevelStatementsTests.cs (8)
202Assert.IsAssignableFrom<IInvocationOperation>(operation1); 245Assert.IsAssignableFrom<ILocalFunctionOperation>(operation2); 330Assert.IsAssignableFrom<IInvalidOperation>(operation1); 368Assert.IsAssignableFrom<ILocalFunctionOperation>(operation2); 490Assert.IsAssignableFrom<IVariableDeclaratorOperation>(operation1); 510Assert.IsAssignableFrom<IInvalidOperation>(operation2); 582Assert.IsAssignableFrom<IVariableDeclaratorOperation>(operation1); 599Assert.IsAssignableFrom<ILocalReferenceOperation>(operation2);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Compilation\SemanticModelAPITests.cs (2)
206var rxSymbol = Assert.IsAssignableFrom<ILocalSymbol>(rxInfo.Symbol); 238var rxSymbol = Assert.IsAssignableFrom<ILocalSymbol>(rxInfo.Symbol);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
64var rxLocal = Assert.IsAssignableFrom<ILocalSymbol>(rx);
Symbols\Metadata\PE\MissingTypeReferences.cs (4)
267Assert.IsAssignableFrom<MissingMetadataTypeSymbol>(assembly2.CachedTypeByEmittedName("MissingNS1.MissingC1")); 268Assert.IsAssignableFrom<MissingMetadataTypeSymbol>(assembly2.CachedTypeByEmittedName("MissingNS2.MissingNS3.MissingC2")); 269Assert.IsAssignableFrom<MissingMetadataTypeSymbol>(assembly2.CachedTypeByEmittedName("NS4.MissingNS5.MissingC3")); 270Assert.IsAssignableFrom<MissingMetadataTypeSymbol>(assembly2.CachedTypeByEmittedName("MissingC4`2"));
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (2)
119Assert.IsAssignableFrom<PENamedTypeSymbol>(var1.Type); 166Assert.IsAssignableFrom<PENamedTypeSymbol>(var1.Type);
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (2)
204Assert.IsAssignableFrom<PENamedTypeSymbol>(param.First().Type); 275Assert.IsAssignableFrom<PENamedTypeSymbol>(methodSymbol.Type);
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
352Assert.IsAssignableFrom<MissingMetadataTypeSymbol>(a.AttributeClass);
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
45Assert.IsAssignableFrom<PENamedTypeSymbol>(modifiers);
Symbols\Source\BaseClassTests.cs (4)
1077Assert.IsAssignableFrom<PENamedTypeSymbol>(B1); 1097Assert.IsAssignableFrom<PENamedTypeSymbol>(B2); 1193Assert.IsAssignableFrom<PENamedTypeSymbol>(B1); 1223Assert.IsAssignableFrom<PENamedTypeSymbol>(B2);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
50Assert.IsAssignableFrom<TSyntax>(node); 57Assert.IsAssignableFrom<TSyntax>(node);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
SymbolFinder\FindSymbolAtPositionTests.cs (1)
61var fieldSymbol = Assert.IsAssignableFrom<IFieldSymbol>(await FindSymbolAtPositionAsync(workspace));
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\TestOperationVisitor.cs (2)
781Assert.IsAssignableFrom<ITypeParameterSymbol>(constrainedToType); 882Assert.IsAssignableFrom<ITypeParameterSymbol>(constrainedToType);
Microsoft.CodeAnalysis.UnitTests (7)
AnalyzerAssemblyLoaderTests.cs (1)
390Assert.IsAssignableFrom<FileNotFoundException>(exception.InnerException);
Collections\ImmutableSegmentedListTest.cs (2)
803var list = Assert.IsAssignableFrom<IEnumerable>(createMethod.Invoke(null, null)); 806list = Assert.IsAssignableFrom<IEnumerable>(addMethod!.Invoke(list, new object?[] { Activator.CreateInstance(dummType.AsType()) }));
MetadataReferences\MetadataReferenceTests.cs (4)
133Assert.IsAssignableFrom<AssemblyMetadata>(r.GetMetadata()); 149Assert.IsAssignableFrom<ModuleMetadata>(r.GetMetadata()); 165Assert.IsAssignableFrom<AssemblyMetadata>(r.GetMetadata()); 188Assert.IsAssignableFrom<ModuleMetadata>(r.GetMetadata());
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
CodeGen\CodeGenTuples.vb (2)
20496Dim constraint = Assert.IsAssignableFrom(Of NamedTypeSymbol)(param.ConstraintTypes(0)) 20511constraint = Assert.IsAssignableFrom(Of NamedTypeSymbol)(param.ConstraintTypes(0))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
27Assert.IsAssignableFrom<TSyntax>(node);
Microsoft.Data.Analysis.Tests (4)
ArrayComparer.cs (4)
60Assert.IsAssignableFrom<StructArray>(_expectedArray); 78Assert.IsAssignableFrom<PrimitiveArray<T>>(_expectedArray); 104Assert.IsAssignableFrom<BooleanArray>(_expectedArray); 118Assert.IsAssignableFrom<StringArray>(_expectedArray);
Microsoft.DotNet.XUnitAssert.Tests (7)
TypeAssertsTests.cs (7)
20 var result = Record.Exception(() => Assert.IsAssignableFrom<object>(null)); 36 Assert.IsAssignableFrom<InvalidCastException>(ex); 44 Assert.IsAssignableFrom<Exception>(ex); 52 Assert.IsAssignableFrom<IDisposable>(ex); 60 var result = Assert.IsAssignableFrom<InvalidCastException>(ex); 70 () => Assert.IsAssignableFrom<InvalidCastException>(new InvalidOperationException()) 129 var result = Assert.IsAssignableFrom<InvalidCastException>(ex);
Microsoft.Extensions.ApiDescription.Client.Tests (11)
GetCurrentOpenApiReferenceTest.cs (1)
45var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata());
GetOpenApiReferenceMetadataTest.cs (9)
54var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 112var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 170var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 228var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 378var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 441var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 541var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 553var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata()); 565var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(output.CloneCustomMetadata());
MetadataSerializerTest.cs (1)
127var metadata = Assert.IsAssignableFrom<IDictionary<string, string>>(item.CloneCustomMetadata());
Microsoft.Extensions.Caching.Hybrid.Tests (3)
L2Tests.cs (2)
52var backend = Assert.IsAssignableFrom<LoggingCache>(cache.BackendCache); 110var backend = Assert.IsAssignableFrom<LoggingCache>(cache.BackendCache);
RedisTests.cs (1)
57Assert.IsAssignableFrom<RedisCache>(cache.BackendCache);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
CacheServiceExtensionsTests.cs (2)
49Assert.IsAssignableFrom<RedisCache>(serviceProvider.GetRequiredService<IDistributedCache>()); 120Assert.IsAssignableFrom<RedisCache>(serviceProvider.GetRequiredService<IDistributedCache>());
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Redaction\NullRedactorTest.cs (1)
63Assert.IsAssignableFrom<NullRedactor>(redactor1);
Microsoft.Extensions.Compliance.Redaction.Tests (5)
HmacRedactorTest.cs (1)
81Assert.IsAssignableFrom<ArgumentException>(e);
RedactionAcceptanceTests.cs (3)
50Assert.IsAssignableFrom<IRedactorProvider>(redactorProvider); 72Assert.IsAssignableFrom<Redactor>(redactor); 73Assert.IsAssignableFrom<IRedactorProvider>(redactorProvider);
RedactorProviderTests.cs (1)
33Assert.IsAssignableFrom<Redactor>(r);
Microsoft.Extensions.Compliance.Testing.Tests (9)
RedactionFakesAcceptanceTests.cs (9)
30Assert.IsAssignableFrom<FakeRedactor>(r); 49Assert.IsAssignableFrom<FakeRedactor>(r); 69Assert.IsAssignableFrom<FakeRedactor>(r); 88Assert.IsAssignableFrom<FakeRedactor>(r); 108Assert.IsAssignableFrom<FakeRedactor>(r); 128Assert.IsAssignableFrom<FakeRedactor>(r); 148Assert.IsAssignableFrom<FakeRedactor>(r); 168Assert.IsAssignableFrom<FakeRedactor>(r); 188Assert.IsAssignableFrom<FakeRedactor>(r);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (15)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (9)
88Assert.IsAssignableFrom<InvalidOperationException>(r); 115Assert.IsAssignableFrom<InvalidOperationException>(r); 134Assert.IsAssignableFrom<InvalidOperationException>(r); 160Assert.IsAssignableFrom<InvalidOperationException>(r); 234Assert.IsAssignableFrom<InvalidOperationException>(r); 255Assert.IsAssignableFrom<InvalidOperationException>(r); 283Assert.IsAssignableFrom<InvalidOperationException>(r); 333Assert.IsAssignableFrom<InvalidOperationException>(r); 350Assert.IsAssignableFrom<InvalidOperationException>(r);
ResourceMonitoringBuilderTests.cs (3)
31Assert.IsAssignableFrom<EmptyPublisher>(publishersArray.First()); 51Assert.IsAssignableFrom<EmptyPublisher>(publishersArray.First()); 52Assert.IsAssignableFrom<AnotherPublisher>(publishersArray.Last());
ResourceMonitoringExtensionsTests.cs (3)
48Assert.IsAssignableFrom<IResourceMonitor>(trackerService); 64Assert.IsAssignableFrom<IResourceMonitor>(trackerService); 201Assert.IsAssignableFrom<ResourceMonitorService>(tracker);
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
ManifestEmbeddedFileProviderTests.cs (2)
414Assert.IsAssignableFrom<IDirectoryContents>(root["wwwroot"]); 415Assert.IsAssignableFrom<IDirectoryContents>(root["config"]);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestLoggingHandler.cs (1)
27var delegatingHandler = Assert.IsAssignableFrom<DelegatingHandler>(handler);
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Latency\NoopLatencyContextTests.cs (1)
28Assert.IsAssignableFrom<NullLatencyContext>(latencyContextProvider);
Microsoft.Extensions.Telemetry.Tests (13)
Latency\Internal\LatencyContextTests.cs (8)
93Assert.IsAssignableFrom<LatencyContext>(context); 118Assert.IsAssignableFrom<LatencyContext>(context); 144Assert.IsAssignableFrom<LatencyContext>(context); 175Assert.IsAssignableFrom<LatencyContext>(context); 202Assert.IsAssignableFrom<LatencyContext>(context); 229Assert.IsAssignableFrom<LatencyContext>(context); 254Assert.IsAssignableFrom<LatencyContext>(context); 279Assert.IsAssignableFrom<LatencyContext>(context);
Latency\LatencyConsoleExtensionsTests.cs (1)
34Assert.IsAssignableFrom<LatencyConsoleExporter>(exporter);
Latency\LatencyContextExtensionTests.cs (4)
33Assert.IsAssignableFrom<LatencyContextProvider>(latencyContextProvider); 37Assert.IsAssignableFrom<LatencyContextTokenIssuer>(latencyContextTokenIssuer); 76Assert.IsAssignableFrom<LatencyContextProvider>(latencyContextProvider); 80Assert.IsAssignableFrom<LatencyContextTokenIssuer>(latencyContextTokenIssuer);
Microsoft.Gen.ContextualOptions.Generated.Tests (1)
ContextualOptionsTests.cs (1)
61Assert.IsAssignableFrom<IOptionsContext>(default(NonPublicStruct));
Microsoft.JSInterop.Tests (8)
Infrastructure\ByteArrayJsonConverterTest.cs (1)
65Assert.IsAssignableFrom<JsonException>(ex);
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (2)
53Assert.IsAssignableFrom<JsonException>(ex); 68Assert.IsAssignableFrom<JsonException>(ex);
Infrastructure\JSObjectReferenceJsonConverterTest.cs (2)
50Assert.IsAssignableFrom<JsonException>(ex); 61Assert.IsAssignableFrom<JsonException>(ex);
Infrastructure\JSStreamReferenceJsonConverterTest.cs (2)
50Assert.IsAssignableFrom<JsonException>(ex); 61Assert.IsAssignableFrom<JsonException>(ex);
JSRuntimeTest.cs (1)
232Assert.IsAssignableFrom<JsonException>(jsException.InnerException);
Microsoft.ML.IntegrationTests (4)
ModelFiles.cs (4)
196Assert.IsAssignableFrom<CalibratedModelParametersBase>( 197Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(trans).Model).SubModel); 288Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(loadedModelWithLoader); 290Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(loadedModelWithoutLoader);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (1)
140var storage = Assert.IsAssignableFrom<IVsBuildPropertyStorage>(hierarchy);
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (2)
181var storage = Assert.IsAssignableFrom<IVsBuildPropertyStorage>(hierarchy); 216var storage = Assert.IsAssignableFrom<IVsBuildPropertyStorage>(hierarchy);
System.Drawing.Common.Tests (4)
System\Drawing\Imaging\ImageAttributesTests.cs (1)
75using ImageAttributes clone = Assert.IsAssignableFrom<ImageAttributes>(imageAttr.Clone());
System\Drawing\Printing\PrintDocumentTests.cs (2)
52Assert.IsAssignableFrom<PageSettings>(document.DefaultPageSettings); 111Assert.IsAssignableFrom<PrinterSettings>(document.PrinterSettings);
System\Drawing\Printing\PrinterSettingsTests.cs (1)
449PrinterSettings clone = Assert.IsAssignableFrom<PrinterSettings>(printerSettings.Clone());
System.ServiceModel.Primitives.Tests (4)
Description\SecurityCredentialsManagerTest.cs (1)
19Assert.IsAssignableFrom<SecurityCredentialsManager>(credentials);
IdentityModel\SymmetricSecurityKeyTest.cs (1)
28Assert.IsAssignableFrom<DES>(mgsaalg.GetSymmetricAlgorithm(algorit));
ServiceModel\FaultExceptionTest.cs (2)
196Assert.IsAssignableFrom<Exception>(exception); 197Assert.IsAssignableFrom<FaultException>(exception);
System.Windows.Forms.Design.Tests (109)
System\ComponentModel\Design\ComponentDesignerTests.cs (3)
2169.Callback<Type, object>((t, s) => set = Assert.IsAssignableFrom<DesignerCommandSet>(s)) 2439EventDescriptor result = Assert.IsAssignableFrom<EventDescriptor>(events["Event"]); 2879EventDescriptor result = Assert.IsAssignableFrom<EventDescriptor>(events["Event"]);
System\ComponentModel\Design\DesignerActionServiceTests.cs (5)
499DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 504DesignerActionMethodItem actionItem = Assert.IsAssignableFrom<DesignerActionMethodItem>(Assert.Single(verbActionActionItems)); 543DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 599DesignerActionList actionList = Assert.IsAssignableFrom<DesignerActionList>(Assert.Single(actionListBuffer)); 601DesignerActionMethodItem actionItem = Assert.IsAssignableFrom<DesignerActionMethodItem>(Assert.Single(actionList.GetSortedActionItems()));
System\ComponentModel\Design\DesignerHostTests.cs (39)
89IDesignerHostTransactionState hostTransactionState = Assert.IsAssignableFrom<IDesignerHostTransactionState>(surface.Host); 915IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 928IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 947IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 959IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 977IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 989IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1006IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1042IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1069IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1102IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1132IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1166IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1204IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1239IServiceContainer container = Assert.IsAssignableFrom<IServiceContainer>(component.Site); 1372IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 1503INestedContainer nestedContainer = Assert.IsAssignableFrom<INestedContainer>(component.Site.GetService(typeof(INestedContainer))); 1516INestedContainer container = Assert.IsAssignableFrom<INestedContainer>(component.Site.GetService(typeof(INestedContainer))); 1550NestedContainer container = Assert.IsAssignableFrom<NestedContainer>(component.Site.GetService(typeof(INestedContainer))); 1601IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 1799IDisposable disposable = Assert.IsAssignableFrom<IDisposable>(host); 2783IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2849IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2874IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 2933IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2966IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3003IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3038IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3067IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3075IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3083IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3091IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3099IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3107IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3116IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3124IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3133IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3141IReflect reflect = Assert.IsAssignableFrom<IReflect>(surface.Host); 3155public IDesignerLoaderHost2 Host => Assert.IsAssignableFrom<IDesignerLoaderHost2>(ComponentContainer);
System\ComponentModel\Design\DesignSurfaceTests.cs (13)
214ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(container.GetService(typeof(ISelectionService))); 224Assert.IsAssignableFrom<IExtenderProviderService>(container.GetService(typeof(IExtenderProviderService))); 232Assert.IsAssignableFrom<IExtenderListService>(container.GetService(typeof(IExtenderListService))); 233Assert.IsAssignableFrom<IExtenderProviderService>(container.GetService(typeof(IExtenderListService))); 241Assert.IsAssignableFrom<ITypeDescriptorFilterService>(container.GetService(typeof(ITypeDescriptorFilterService))); 249Assert.IsAssignableFrom<IReferenceService>(container.GetService(typeof(IReferenceService))); 1486ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(surface.GetService(typeof(ISelectionService))); 1495Assert.IsAssignableFrom<IExtenderProviderService>(surface.GetService(typeof(IExtenderProviderService))); 1502Assert.IsAssignableFrom<IExtenderListService>(surface.GetService(typeof(IExtenderListService))); 1503Assert.IsAssignableFrom<IExtenderProviderService>(surface.GetService(typeof(IExtenderListService))); 1510Assert.IsAssignableFrom<ITypeDescriptorFilterService>(surface.GetService(typeof(ITypeDescriptorFilterService))); 1517Assert.IsAssignableFrom<IReferenceService>(surface.GetService(typeof(IReferenceService))); 1733public IDesignerLoaderHost2 Host => Assert.IsAssignableFrom<IDesignerLoaderHost2>(ComponentContainer);
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (11)
15IExtenderListService listService = Assert.IsAssignableFrom<IExtenderListService>(service); 24IExtenderListService listService = Assert.IsAssignableFrom<IExtenderListService>(service); 25IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 42IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 51IExtenderListService listService = Assert.IsAssignableFrom<IExtenderListService>(service); 52IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 64IExtenderListService listService = Assert.IsAssignableFrom<IExtenderListService>(service); 65IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 89IExtenderListService listService = Assert.IsAssignableFrom<IExtenderListService>(service); 90IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 101IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (28)
115ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 221ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 321ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 373ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 421ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 467ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 512ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 561ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 608ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 644ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 660ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 678ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 713ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 743ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 785ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 840ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 921ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 951ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 993ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1048ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1131ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1174ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1231ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1302ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1410ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1453ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1510ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store); 1581ISerializable serializable = Assert.IsAssignableFrom<ISerializable>(store);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (4)
147Assert.IsAssignableFrom<IList>(errors); 207PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 304PropertyDescriptor property = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(properties)); 312PropertyDescriptor otherProperty = Assert.IsAssignableFrom<PropertyDescriptor>(Assert.Single(otherProperties));
System\ComponentModel\Design\SiteNestedContainerTests.cs (6)
76INestedSite nestedSite = Assert.IsAssignableFrom<INestedSite>(component1.Site); 514IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 915IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 983IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 1009IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1029public IDesignerLoaderHost2 Host => Assert.IsAssignableFrom<IDesignerLoaderHost2>(ComponentContainer);
System.Windows.Forms.Tests (89)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
130Assert.IsAssignableFrom<ListViewItemBaseAccessibleObject>(firstChild); 131Assert.IsAssignableFrom<ListViewItemBaseAccessibleObject>(lastChild); 171Assert.IsAssignableFrom<ListViewItemBaseAccessibleObject>(firstChild); 172Assert.IsAssignableFrom<ListViewItemBaseAccessibleObject>(lastChild);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (4)
22Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 47Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 85Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 104Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (10)
23Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 48Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 86Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 114Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 132Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 144TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 156TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 168TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 180TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 193TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject);
System\Windows\Forms\BindingContextTests.cs (16)
38PropertyManager manager1 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource1, "Property"]); 39PropertyManager manager2 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource2, "Property"]); 184PropertyManager manager1 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource1, "Property"]); 185PropertyManager manager2 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource2, "Property"]); 213PropertyManager manager1 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource1, "Property"]); 214PropertyManager manager2 = Assert.IsAssignableFrom<PropertyManager>(context[dataSource2, "Property"]); 522PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource, dataMember]); 579CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 598PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource, "Property"]); 616CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 638CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 659PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource, "Property"]); 700PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource, "Property"]); 840PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource, "Property"]); 859CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 951PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context[dataSource]);
System\Windows\Forms\ButtonTests.cs (7)
1005Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1026Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1060Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1082Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1103Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1130Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance()); 1152Button.ButtonBaseAccessibleObject instance = Assert.IsAssignableFrom<Button.ButtonBaseAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (2)
64Assert.IsAssignableFrom<Int32Converter>(converter.InnerConverter); 151Assert.IsAssignableFrom<StringConverter>(converter.InnerConverter);
System\Windows\Forms\ControlTests.Methods.cs (1)
404Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\DataGridViewCellTests.cs (1)
3447DataGridViewCellAccessibleObject instance = Assert.IsAssignableFrom<DataGridViewCellAccessibleObject>(cell.CreateAccessibilityInstance());
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
984Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance()); 1000Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\GroupBoxTests.cs (2)
1382Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance()); 1397Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\ListBoxTests.cs (1)
4760Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\MenuStripTests.cs (3)
413ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 428ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 483ToolStripItem item = Assert.IsAssignableFrom<ToolStripItem>(control.CreateDefaultItem(text, null, onClick));
System\Windows\Forms\MonthCalendarTests.cs (1)
2292Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\ProgressBarTests.cs (1)
1770Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
20Assert.IsAssignableFrom<PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject>(
System\Windows\Forms\PropertyGridTests.cs (2)
3933Assert.IsAssignableFrom<IRootGridEntry>(selectedItem); 3934SingleSelectRootGridEntry gridEntry = Assert.IsAssignableFrom<SingleSelectRootGridEntry>(selectedItem);
System\Windows\Forms\StatusStripTests.cs (3)
862Control.ControlAccessibleObject instance = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(control.CreateAccessibilityInstance()); 1068ToolStripItem button = Assert.IsAssignableFrom<ToolStripItem>(control.CreateDefaultItem(text, null, onClick)); 1185Control grip = Assert.IsAssignableFrom<Control>(Assert.Single(control.Controls));
System\Windows\Forms\ToolStripButtonTests.cs (5)
1003ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 1017ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 1031ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 1050ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 1069ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance());
System\Windows\Forms\ToolStripControlHostTests.cs (11)
2037IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2057IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2079IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2098IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2118IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2138IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2170IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2518ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 2537ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 2552ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 2565ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance());
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2995ToolStripItem button = Assert.IsAssignableFrom<ToolStripItem>(control.CreateDefaultItem(text, null, onClick));
System\Windows\Forms\ToolStripItemTests.cs (2)
9837ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 13672ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems));
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
724ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance()); 737ToolStripItem.ToolStripItemAccessibleObject accessibleObject = Assert.IsAssignableFrom<ToolStripItem.ToolStripItemAccessibleObject>(item.CreateAccessibilityInstance());
System\Windows\Forms\ToolStripTests.cs (7)
2736ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 2745ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 2795ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems)); 4235Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 4259Control.ControlCollection controls = Assert.IsAssignableFrom<Control.ControlCollection>(control.CreateControlsInstance()); 4313ToolStripItem button = Assert.IsAssignableFrom<ToolStripItem>(control.CreateDefaultItem(text, null, onClick)); 6538ToolStripItem grip = Assert.IsAssignableFrom<ToolStripItem>(Assert.Single(control.DisplayedItems));
System.Xaml.Tests (3)
System\Windows\Markup\StaticExtensionTests.cs (1)
217Assert.Equal(new Type[] { typeof(string) }, Assert.IsAssignableFrom<ConstructorInfo>(descriptor.MemberInfo).GetParameters().Select(p => p.ParameterType));
System\Windows\Markup\TypeExtensionTests.cs (1)
178Assert.Equal(new Type[] { typeof(Type) }, Assert.IsAssignableFrom<ConstructorInfo>(descriptor.MemberInfo).GetParameters().Select(p => p.ParameterType));
System\Windows\Markup\XDataTests.cs (1)
35XmlReader reader = Assert.IsAssignableFrom<XmlReader>(data.XmlReader);