3810 references to NotNull
Aspire.Azure.AI.OpenAI.Tests (3)
AspireAzureAIOpenAIExtensionsTests.cs (3)
40Assert.NotNull(client); 66Assert.NotNull(client); 86Assert.NotNull(client);
Aspire.Azure.Search.Documents.Tests (2)
AspireAzureSearchExtensionsTests.cs (2)
41Assert.NotNull(client); 68Assert.NotNull(client);
Aspire.Components.Common.Tests (5)
ConformanceTests.cs (5)
187Assert.NotNull(serviceFromFirstScope); 188Assert.NotNull(serviceFromSecondScope); 189Assert.NotNull(secondServiceFromSecondScope); 244Assert.NotNull(host.Services.GetKeyedService<TService>(key)); 341Assert.NotNull(detail);
Aspire.Dashboard.Tests (14)
ConsoleLogsTests\TimestampParserTests.cs (1)
36Assert.NotNull(parseResult);
Integration\FrontendBrowserTokenAuthTests.cs (1)
162Assert.NotNull(queryString["t"]);
Integration\FrontendOpenIdConnectAuthTests.cs (1)
54Assert.NotNull(redirectedTo);
Integration\MockOpenIdAuthority.cs (1)
120Assert.NotNull(serverAddress);
Integration\OtlpGrpcServiceTests.cs (1)
261Assert.NotNull(clientCallbackCert);
Integration\OtlpHttpServiceTests.cs (1)
211Assert.NotNull(clientCallbackCert);
Integration\StartupTests.cs (3)
109Assert.NotNull(app); 216Assert.NotNull(app); 377Assert.NotNull(testSink);
OtlpApiKeyAuthenticationHandlerTests.cs (2)
27Assert.NotNull(result.Failure); 41Assert.NotNull(result.Failure);
TelemetryRepositoryTests\ApplicationTests.cs (2)
46Assert.NotNull(app1); 50Assert.NotNull(app2);
TelemetryRepositoryTests\MetricsTests.cs (1)
272Assert.NotNull(instrument);
Aspire.Hosting.Testing.Tests (8)
ResourceLoggerForwarderServiceTests.cs (1)
40Assert.NotNull(resourceLogForwarder.ExecuteTask);
TestingBuilderTests.cs (4)
29Assert.NotNull(workerEndpoint); 34Assert.NotNull(pgConnectionString); 70Assert.NotNull(result1); 120Assert.NotNull(result);
TestingFactoryTests.cs (3)
23Assert.NotNull(workerEndpoint); 52Assert.NotNull(result1); 80Assert.NotNull(result);
Aspire.Hosting.Tests (64)
AddParameterTests.cs (3)
29Assert.NotNull(annotation); 66Assert.NotNull(annotation); 70Assert.NotNull(state.State);
AWS\AWSCloudFormationResourceTests.cs (2)
26Assert.NotNull(resource.AWSSDKConfig); 49Assert.NotNull(resource.AWSSDKConfig);
Azure\AzureBicepResourceTests.cs (11)
297Assert.NotNull(callbackDatabases); 396Assert.NotNull(callbackDatabases); 782Assert.NotNull(moduleConstruct); 820Assert.NotNull(moduleConstruct); 1321Assert.NotNull(resource); 1329Assert.NotNull(azurePostgres); 1449Assert.NotNull(resource); 1457Assert.NotNull(azurePostgres); 2416Assert.NotNull(aiDeployments); 2539Assert.NotNull(vault); 2546Assert.NotNull(vault);
Azure\AzureEventHubsExtensionsTests.cs (1)
116Assert.NotNull(containerImageAnnotation);
Azure\AzureResourceExtensionsTests.cs (2)
149Assert.NotNull(endpointAnnotation); 170Assert.NotNull(containerImageAnnotation);
Dapr\DaprTests.cs (2)
83Assert.NotNull(container.Annotations.OfType<DaprSidecarAnnotation>()); 164Assert.NotNull(container.Annotations.OfType<DaprSidecarAnnotation>());
Dashboard\DashboardResourceTests.cs (5)
46Assert.NotNull(dashboard); 166Assert.NotNull(dashboard); 359Assert.NotNull(dashboard); 384Assert.NotNull(testLogger); 410Assert.NotNull(dashboard);
DistributedApplicationBuilderTests.cs (1)
38Assert.NotNull(app.Services.GetRequiredKeyedService<IDistributedApplicationPublisher>("manifest"));
DistributedApplicationTests.cs (7)
47Assert.NotNull(appModel); 116Assert.NotNull(appModel); 311Assert.NotNull(envVars); 354Assert.NotNull(envVars); 392Assert.NotNull(envVars); 659Assert.NotNull(result); 766Assert.NotNull(suffix);
Garnet\AddGarnetTests.cs (4)
175Assert.NotNull(argsAnnotation.Callback); 206Assert.NotNull(argsAnnotation.Callback); 238Assert.NotNull(argsAnnotation.Callback); 253Assert.NotNull(argsAnnotations.SingleOrDefault());
Milvus\AddMilvusTests.cs (2)
39Assert.NotNull(endpoint); 70Assert.NotNull(endpoint);
MongoDB\AddMongoDBTests.cs (1)
88Assert.NotNull(connectionStringResource);
MySql\AddMySqlTests.cs (2)
254Assert.NotNull(config["PMA_USER"]); 255Assert.NotNull(config["PMA_PASSWORD"]);
Nats\AddNatsTests.cs (1)
67Assert.NotNull(argsAnnotation.Callback);
Qdrant\AddQdrantTests.cs (3)
58Assert.NotNull(endpoint); 98Assert.NotNull(endpoint); 131Assert.NotNull(endpoint);
Redis\AddRedisTests.cs (4)
264Assert.NotNull(argsAnnotation.Callback); 295Assert.NotNull(argsAnnotation.Callback); 327Assert.NotNull(argsAnnotation.Callback); 342Assert.NotNull(argsAnnotations.SingleOrDefault());
ResourceNotificationTests.cs (1)
30Assert.NotNull(annotation);
SlimTestProgramTests.cs (2)
56Assert.NotNull(endpoint.AllocatedEndpoint); 74Assert.NotNull(endpoint.AllocatedEndpoint);
SqlServer\AddSqlServerTests.cs (1)
73Assert.NotNull(env.Value);
UserSecretsParameterDefaultTests.cs (1)
45Assert.NotNull(initialValue);
Utils\ManifestUtils.cs (4)
16Assert.NotNull(node); 34Assert.NotNull(obj); 56Assert.NotNull(obj); 58Assert.NotNull(resourceNode);
Valkey\AddValkeyTests.cs (4)
175Assert.NotNull(argsAnnotation.Callback); 206Assert.NotNull(argsAnnotation.Callback); 238Assert.NotNull(argsAnnotation.Callback); 253Assert.NotNull(argsAnnotations.SingleOrDefault());
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (9)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (3)
41Assert.NotNull(extension); 78Assert.NotNull(extension); 118Assert.NotNull(extension);
ConformanceTests.cs (2)
86Assert.NotNull(pool); 96Assert.NotNull(dbContext);
EnrichCosmosDbTests.cs (4)
71Assert.NotNull(extension); 96Assert.NotNull(context); 112Assert.NotNull(optionsDescriptor); 117Assert.NotNull(context);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (26)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (5)
99Assert.NotNull(extension); 109Assert.NotNull(extension.ExecutionStrategyFactory); 143Assert.NotNull(extension); 184Assert.NotNull(extension); 219Assert.NotNull(extension);
ConformanceTests.cs (2)
104Assert.NotNull(pool); 114Assert.NotNull(dbContext);
EnrichSqlServerTests.cs (19)
79Assert.NotNull(extension); 85Assert.NotNull(extension.ExecutionStrategyFactory); 124Assert.NotNull(oldOptionsDescriptor); 134Assert.NotNull(extension); 137Assert.NotNull(extension.ExecutionStrategyFactory); 162Assert.NotNull(oldOptionsDescriptor); 168Assert.NotNull(optionsDescriptor); 177Assert.NotNull(extension); 180Assert.NotNull(extension.ExecutionStrategyFactory); 205Assert.NotNull(oldOptionsDescriptor); 215Assert.NotNull(extension); 218Assert.NotNull(extension.ExecutionStrategyFactory); 239Assert.NotNull(context); 255Assert.NotNull(optionsDescriptor); 260Assert.NotNull(context); 281Assert.NotNull(extension); 284Assert.NotNull(extension.ExecutionStrategyFactory); 326Assert.NotNull(extension); 329Assert.NotNull(extension.ExecutionStrategyFactory);
Aspire.Milvus.Client.Tests (1)
AspireMilvusExtensionTests.cs (1)
77Assert.NotNull(client);
Aspire.MongoDB.Driver.Tests (4)
AspireMongoDBDriverExtensionsTests.cs (2)
49Assert.NotNull(mongoDatabase); 82Assert.NotNull(mongoDatabase);
ConformanceTests.cs (2)
115Assert.NotNull(mongoClient); 116Assert.NotNull(mongoDatabase);
Aspire.MySqlConnector.Tests (3)
ConformanceTests.cs (3)
112Assert.NotNull(mySqlDataSource); 115Assert.NotNull(mySqlConnection); 116Assert.NotNull(dbConnection);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (26)
AspireEFPostgreSqlExtensionsTests.cs (5)
109Assert.NotNull(extension); 119Assert.NotNull(extension.ExecutionStrategyFactory); 151Assert.NotNull(extension); 192Assert.NotNull(extension); 226Assert.NotNull(extension);
ConformanceTests.cs (2)
121Assert.NotNull(pool); 131Assert.NotNull(dbContext);
EnrichNpgsqlTests.cs (19)
80Assert.NotNull(extension); 86Assert.NotNull(extension.ExecutionStrategyFactory); 127Assert.NotNull(oldOptionsDescriptor); 137Assert.NotNull(extension); 140Assert.NotNull(extension.ExecutionStrategyFactory); 166Assert.NotNull(oldOptionsDescriptor); 172Assert.NotNull(optionsDescriptor); 181Assert.NotNull(extension); 184Assert.NotNull(extension.ExecutionStrategyFactory); 210Assert.NotNull(oldOptionsDescriptor); 220Assert.NotNull(extension); 223Assert.NotNull(extension.ExecutionStrategyFactory); 246Assert.NotNull(context); 263Assert.NotNull(optionsDescriptor); 268Assert.NotNull(context); 290Assert.NotNull(extension); 293Assert.NotNull(extension.ExecutionStrategyFactory); 337Assert.NotNull(extension); 340Assert.NotNull(extension.ExecutionStrategyFactory);
Aspire.Npgsql.Tests (3)
ConformanceTests.cs (3)
114Assert.NotNull(npgsqlDataSource); 117Assert.NotNull(npgsqlConnection); 118Assert.NotNull(dbConnection);
Aspire.Oracle.EntityFrameworkCore.Tests (26)
AspireOracleEFCoreDatabaseExtensionsTests.cs (5)
100Assert.NotNull(extension); 110Assert.NotNull(extension.ExecutionStrategyFactory); 144Assert.NotNull(extension); 185Assert.NotNull(extension); 220Assert.NotNull(extension);
ConformanceTests.cs (2)
91Assert.NotNull(pool); 101Assert.NotNull(dbContext);
EnrichOracleDatabaseTests.cs (19)
74Assert.NotNull(extension); 80Assert.NotNull(extension.ExecutionStrategyFactory); 119Assert.NotNull(oldOptionsDescriptor); 129Assert.NotNull(extension); 132Assert.NotNull(extension.ExecutionStrategyFactory); 157Assert.NotNull(oldOptionsDescriptor); 163Assert.NotNull(optionsDescriptor); 172Assert.NotNull(extension); 175Assert.NotNull(extension.ExecutionStrategyFactory); 200Assert.NotNull(oldOptionsDescriptor); 210Assert.NotNull(extension); 213Assert.NotNull(extension.ExecutionStrategyFactory); 234Assert.NotNull(context); 250Assert.NotNull(optionsDescriptor); 255Assert.NotNull(context); 276Assert.NotNull(extension); 279Assert.NotNull(extension.ExecutionStrategyFactory); 321Assert.NotNull(extension); 324Assert.NotNull(extension.ExecutionStrategyFactory);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (26)
AspireEFMySqlExtensionsTests.cs (5)
118Assert.NotNull(extension); 129Assert.NotNull(extension.ExecutionStrategyFactory); 161Assert.NotNull(extension); 204Assert.NotNull(extension); 242Assert.NotNull(extension);
ConformanceTests.cs (2)
117Assert.NotNull(pool); 127Assert.NotNull(dbContext);
EnrichMySqlTests.cs (19)
92Assert.NotNull(extension); 98Assert.NotNull(extension.ExecutionStrategyFactory); 137Assert.NotNull(oldOptionsDescriptor); 147Assert.NotNull(extension); 150Assert.NotNull(extension.ExecutionStrategyFactory); 175Assert.NotNull(oldOptionsDescriptor); 181Assert.NotNull(optionsDescriptor); 190Assert.NotNull(extension); 193Assert.NotNull(extension.ExecutionStrategyFactory); 218Assert.NotNull(oldOptionsDescriptor); 228Assert.NotNull(extension); 231Assert.NotNull(extension.ExecutionStrategyFactory); 252Assert.NotNull(context); 268Assert.NotNull(optionsDescriptor); 273Assert.NotNull(context); 294Assert.NotNull(extension); 297Assert.NotNull(extension.ExecutionStrategyFactory); 339Assert.NotNull(extension); 342Assert.NotNull(extension.ExecutionStrategyFactory);
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
120Assert.NotNull(testException);
Aspire.StackExchange.Redis.Tests (2)
AspireRedisExtensionsTests.cs (2)
235Assert.NotNull(healthCheckService); 259Assert.NotNull(profiler);
Binding.Custom.IntegrationTests (2)
CustomBindingTests.4.0.0.cs (1)
34Assert.NotNull(result);
CustomBindingTests.4.1.0.cs (1)
80Assert.NotNull(result);
Binding.Http.IntegrationTests (3)
NetHttpBindingTests.4.0.0.cs (1)
35Assert.NotNull(result);
NetHttpsBindingTests.4.1.0.cs (1)
104Assert.NotNull(result);
OperationContextTests.cs (1)
46Assert.NotNull(OperationContext.Current);
Binding.Tcp.IntegrationTests (3)
OperationContextAsyncFlowTests.cs (3)
33Assert.NotNull(OperationContext.Current); 68Assert.NotNull(OperationContext.Current); 160Assert.NotNull(opContext);
Client.ClientBase.IntegrationTests (2)
ClientBaseTests.4.0.0.cs (2)
38Assert.NotNull(property); 85Assert.NotNull(property);
ConfigurationSchemaGenerator.Tests (2)
GeneratorTests.cs (2)
1308Assert.NotNull(configSchemaInfo); 1312Assert.NotNull(spec);
Contract.XmlSerializer.IntegrationTests (10)
XmlSerializerFormatSoapTest.cs (2)
41Assert.NotNull(response); 75Assert.NotNull(response);
XmlSerializerFormatTest.4.1.0.cs (2)
30Assert.NotNull(response); 57Assert.NotNull(response);
XmlSerializerFormatTest.cs (6)
191Assert.NotNull(outputIntParams); 239Assert.NotNull(outputIntParams); 287Assert.NotNull(outputIntParams); 340Assert.NotNull(outputIntParams); 397Assert.NotNull(outputIntParams); 454Assert.NotNull(outputIntParams);
Diagnostics.FunctionalTests (4)
DeveloperExceptionPageSampleTest.cs (1)
50Assert.NotNull(body);
ProblemDetailsExceptionHandlerSampleTest.cs (1)
34Assert.NotNull(body);
StatusCodeSampleTest.cs (2)
90Assert.NotNull(body); 107Assert.NotNull(body);
dotnet-svcutil.xmlserializer.IntegrationTests (10)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatSoapTest.cs (2)
41Assert.NotNull(response); 75Assert.NotNull(response);
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.4.1.0.cs (2)
30Assert.NotNull(response); 57Assert.NotNull(response);
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (6)
191Assert.NotNull(outputIntParams); 239Assert.NotNull(outputIntParams); 287Assert.NotNull(outputIntParams); 340Assert.NotNull(outputIntParams); 397Assert.NotNull(outputIntParams); 454Assert.NotNull(outputIntParams);
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
565Assert.NotNull(nugetFile);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
IIS.Tests (5)
ConnectionIdFeatureTests.cs (1)
30Assert.NotNull(connectionId);
MaxRequestBodySizeTests.cs (3)
309Assert.NotNull(exception); 344Assert.NotNull(requestRejectedEx1); 345Assert.NotNull(requestRejectedEx2);
TlsHandshakeFeatureTests.cs (1)
30Assert.NotNull(tlsHandshakeFeature);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
188Assert.NotNull(appPool);
InMemory.FunctionalTests (101)
BadHttpRequestTests.cs (1)
315Assert.NotNull(loggedException);
EventSourceTests.cs (4)
75Assert.NotNull(connectionId); 200Assert.NotNull(connectionId); 305Assert.NotNull(connectionId); 386Assert.NotNull(connectionId);
Http2\Http2ConnectionTests.cs (3)
388Assert.NotNull(trailersFirst); 389Assert.NotNull(trailersLast); 5490Assert.NotNull(Http2Connection.InvalidHttp1xErrorResponseBytes);
Http2\Http2EndToEndTests.cs (1)
76Assert.NotNull(connectionIdFromFeature);
Http2\Http2StreamTests.cs (13)
1162Assert.NotNull(thrownEx); 1197Assert.NotNull(thrownEx); 1233Assert.NotNull(thrownEx); 1269Assert.NotNull(thrownEx); 1533Assert.NotNull(ex); 1935Assert.NotNull(exception); 2022Assert.NotNull(exception); 2085Assert.NotNull(exception); 3437Assert.NotNull(thrownEx); 3464Assert.NotNull(thrownEx); 4684Assert.NotNull(writeEx); 5621Assert.NotNull(resetFeature); 5705Assert.NotNull(resetFeature);
Http2\Http2TestBase.cs (1)
381Assert.NotNull(resetFeature);
Http2\TlsTests.cs (1)
39Assert.NotNull(tlsFeature);
Http3\Http3ConnectionTests.cs (4)
433Assert.NotNull(contentType1); 434Assert.NotNull(authority1); 587Assert.NotNull(trailersFirst); 588Assert.NotNull(trailersLast);
Http3\Http3StreamTests.cs (5)
1853Assert.NotNull(resetFeature); 1918Assert.NotNull(resetFeature); 2541Assert.NotNull(exception); 2613Assert.NotNull(exception); 2668Assert.NotNull(exception);
HttpsConnectionMiddlewareTests.cs (40)
115Assert.NotNull(feature); 116Assert.NotNull(feature.SslStream); 146Assert.NotNull(tlsFeature); 184Assert.NotNull(tlsFeature); 233Assert.NotNull(tlsFeature); 261Assert.NotNull(tlsFeature); 306Assert.NotNull(connection); 307Assert.NotNull(connection.Features.Get<SslStream>()); 337Assert.NotNull(stream); 370Assert.NotNull(connection); 371Assert.NotNull(connection.Features.Get<SslStream>()); 443Assert.NotNull(connection); 444Assert.NotNull(connection.Features.Get<SslStream>()); 513Assert.NotNull(tlsFeature); 514Assert.NotNull(tlsFeature.ClientCertificate); 515Assert.NotNull(context.Connection.ClientCertificate); 549Assert.NotNull(tlsFeature); 593Assert.NotNull(tlsFeature); 598Assert.NotNull(clientCert); 599Assert.NotNull(tlsFeature.ClientCertificate); 600Assert.NotNull(context.Connection.ClientCertificate); 634Assert.NotNull(tlsFeature); 677Assert.NotNull(tlsFeature); 725Assert.NotNull(tlsFeature); 730Assert.NotNull(clientCert); 731Assert.NotNull(tlsFeature.ClientCertificate); 732Assert.NotNull(context.Connection.ClientCertificate); 767Assert.NotNull(tlsFeature); 894Assert.NotNull(tlsFeature); 1030Assert.NotNull(tlsFeature); 1039Assert.NotNull(clientCert); 1040Assert.NotNull(tlsFeature.ClientCertificate); 1041Assert.NotNull(context.Connection.ClientCertificate); 1077Assert.NotNull(tlsFeature); 1172Assert.NotNull(certificate); 1173Assert.NotNull(chain); 1283Assert.NotNull(tlsFeature); 1284Assert.NotNull(tlsFeature.ClientCertificate); 1285Assert.NotNull(context.Connection.ClientCertificate); 1286Assert.NotNull(context.Connection.ClientCertificate.PublicKey);
HttpsTests.cs (10)
155Assert.NotNull(opt.ServerCertificateSelector); 458Assert.NotNull(bindFeatures); 461Assert.NotNull(sslOptions); 502Assert.NotNull(bindFeatures); 505Assert.NotNull(tlsOptions); 617Assert.NotNull(bindFeatures); 620Assert.NotNull(tlsOptions); 667Assert.NotNull(bindFeatures); 672Assert.NotNull(tlsOptions.OnConnection); 765Assert.NotNull(authOptions.ServerCertificateSelectionCallback);
KestrelMetricsTests.cs (1)
391Assert.NotNull(connectionId);
MaxRequestBodySizeTests.cs (10)
59Assert.NotNull(requestRejectedEx); 197Assert.NotNull(requestRejectedEx); 312Assert.NotNull(invalidOpEx); 351Assert.NotNull(invalidOpEx); 394Assert.NotNull(requestRejectedEx1); 395Assert.NotNull(requestRejectedEx2); 445Assert.NotNull(requestRejectedEx); 562Assert.NotNull(requestRejectedEx); 605Assert.NotNull(requestRejectedEx1); 606Assert.NotNull(requestRejectedEx2);
ResponseDrainingTests.cs (1)
73Assert.NotNull(transportConnection.AbortReason);
ResponseTests.cs (6)
103Assert.NotNull(ex); 135Assert.NotNull(ex); 501Assert.NotNull(readException); 1190Assert.NotNull(completeEx); 3826Assert.NotNull(writeEx); 4257Assert.NotNull(writeEx);
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
299Assert.NotNull(ctx.Request.Headers); 304Assert.NotNull(ctx.Request.Body); 339Assert.NotNull(ctx.Response.Headers); 345Assert.NotNull(originalBody);
Interop.FunctionalTests (11)
Http3\Http3RequestTests.cs (9)
157Assert.NotNull(connectionIdFromFeature); 158Assert.NotNull(mockScopeLoggerProvider.LogScope); 358Assert.NotNull(contentType1); 359Assert.NotNull(authority1); 1538Assert.NotNull(connectionContext); 1837Assert.NotNull(connectionId); 1839Assert.NotNull(remoteAddress); 1840Assert.NotNull(remotePort); 1842Assert.NotNull(localAddress);
HttpClientHttp2InteropTests.cs (2)
1620Assert.NotNull(context.Connection.ClientCertificate); 1621Assert.NotNull(await context.Connection.GetClientCertificateAsync());
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (2)
485Assert.NotNull(expected); 486Assert.NotNull(actual);
Microsoft.AspNetCore.Antiforgery.Test (12)
AntiforgeryTokenTest.cs (2)
91Assert.NotNull(securityToken); 123Assert.NotNull(securityToken);
DefaultAntiforgeryTokenGeneratorTest.cs (5)
27Assert.NotNull(token); 67Assert.NotNull(fieldToken); 132Assert.NotNull(fieldToken); 167Assert.NotNull(fieldToken); 200Assert.NotNull(fieldToken);
DefaultAntiforgeryTokenStoreTest.cs (4)
386Assert.NotNull(cookies); 425Assert.NotNull(cookies); 465Assert.NotNull(cookies); 504Assert.NotNull(cookies);
DefaultClaimUidExtractorTest.cs (1)
47Assert.NotNull(claimUid);
Microsoft.AspNetCore.App.UnitTests (3)
SharedFxTests.cs (3)
116Assert.NotNull(depsFile["compilationOptions"]); 126Assert.NotNull(depsFile["libraries"][libraryId]); 328Assert.NotNull(sharedFxPath);
Microsoft.AspNetCore.Authentication.Core.Test (10)
AuthenticationPropertiesTests.cs (6)
324Assert.NotNull(json); 330Assert.NotNull(deserialized); 338Assert.NotNull(deserialized.Items); 343Assert.NotNull(deserialized.Parameters); 354Assert.NotNull(deserialized); 357Assert.NotNull(deserialized!.Parameters);
AuthenticationSchemeProviderTests.cs (4)
86Assert.NotNull(scheme); 102Assert.NotNull(scheme); 141Assert.NotNull(await provider.GetDefaultSignOutSchemeAsync()); 189Assert.NotNull(a);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (8)
UserJwtsTests.cs (8)
123Assert.NotNull(deserialized); 211Assert.NotNull(secretsJson); 377Assert.NotNull(deserialized); 430Assert.NotNull(secretsJson); 458Assert.NotNull(secretsJson); 522Assert.NotNull(signingKeys.SingleOrDefault(signingKey => signingKey["Issuer"].GetValue<string>() == "test-issuer")); 523Assert.NotNull(signingKeys.SingleOrDefault(signingKey => signingKey["Issuer"].GetValue<string>() == "test-issuer-2")); 718Assert.NotNull(app.UserJwtsFilePath);
Microsoft.AspNetCore.Authentication.Test (77)
AuthenticationMiddlewareTests.cs (6)
77Assert.NotNull(authenticateResultFeature); 78Assert.NotNull(authenticateResultFeature.AuthenticateResult); 120Assert.NotNull(authenticateResultFeature); 121Assert.NotNull(authenticateResultFeature.AuthenticateResult); 146Assert.NotNull(authenticateResultFeature); 147Assert.NotNull(authenticateResultFeature.AuthenticateResult);
CertificateTests.cs (8)
34Assert.NotNull(scheme); 477Assert.NotNull(responseAsXml); 579Assert.NotNull(context.Principal); 608Assert.NotNull(responseAsXml); 651Assert.NotNull(context.Principal); 678Assert.NotNull(responseAsXml); 706Assert.NotNull(context.Principal); 735Assert.NotNull(responseAsXml);
CookieTests.cs (30)
584Assert.NotNull(transaction2.SetCookie); 588Assert.NotNull(transaction3.SetCookie[0]); 620Assert.NotNull(transaction2.SetCookie); 626Assert.NotNull(transaction3.SetCookie); 665Assert.NotNull(transaction2.SetCookie); 707Assert.NotNull(transaction4.SetCookie); 741Assert.NotNull(transaction2.SetCookie); 747Assert.NotNull(transaction3.SetCookie); 753Assert.NotNull(transaction4.SetCookie); 797Assert.NotNull(transaction2.SetCookie); 803Assert.NotNull(transaction3.SetCookie); 809Assert.NotNull(transaction4.SetCookie); 856Assert.NotNull(transaction2.SetCookie); 862Assert.NotNull(transaction3.SetCookie); 868Assert.NotNull(transaction4.SetCookie); 902Assert.NotNull(transaction2.SetCookie); 908Assert.NotNull(transaction3.SetCookie); 954Assert.NotNull(transaction2.SetCookie); 957Assert.NotNull(lastValidateIssuedDate); 958Assert.NotNull(lastExpiresDate); 966Assert.NotNull(transaction3.SetCookie); 972Assert.NotNull(transaction4.SetCookie); 1044Assert.NotNull(transaction4.SetCookie); 1090Assert.NotNull(transaction4.SetCookie); 1143Assert.NotNull(transaction5.SetCookie); 1148Assert.NotNull(transaction5.SetCookie); 1366Assert.NotNull(transaction.SetCookie); 1389Assert.NotNull(transaction.SetCookie); 1659Assert.NotNull(transaction.SetCookie); 1728Assert.NotNull(cookie);
GoogleTests.cs (1)
581Assert.NotNull(transaction.FindTokenValue("expires_at"));
JwtBearerTests.cs (3)
132Assert.NotNull(jwtHandler); 136Assert.NotNull(tokenHandler); 153Assert.NotNull(jwtHandler);
JwtBearerTests_Handler.cs (3)
130Assert.NotNull(jwtHandler); 134Assert.NotNull(tokenHandler); 151Assert.NotNull(jwtHandler);
OAuthTests.cs (2)
135Assert.NotNull(res.Headers.Location); 163Assert.NotNull(res.Headers.Location);
OpenIdConnect\OpenIdConnectChallengeTests.cs (8)
34Assert.NotNull(res.Headers.Location); 67Assert.NotNull(res.Headers.Location); 102Assert.NotNull(res.Headers.Location); 195Assert.NotNull(res.Headers.Location); 230Assert.NotNull(res.Headers.Location); 273Assert.NotNull(res.Headers.Location); 310Assert.NotNull(res.Headers.Location); 354Assert.NotNull(res.Headers.Location);
OpenIdConnect\OpenIdConnectTests.cs (7)
51Assert.NotNull(res.Headers.Location); 78Assert.NotNull(res.Headers.Location); 105Assert.NotNull(res.Headers.Location); 131Assert.NotNull(res.Headers.Location); 158Assert.NotNull(res.Headers.Location); 380Assert.NotNull(jwtHandler); 393Assert.NotNull(jwtHandler);
OpenIdConnect\UniqueJsonKeyClaimActionTests.cs (1)
23Assert.NotNull(claim);
SharedAuthenticationTests.cs (1)
544Assert.NotNull(scheme);
TicketSerializerTests.cs (2)
75Assert.NotNull(identity.Actor); 110Assert.NotNull(claim);
TwitterTests.cs (3)
242Assert.NotNull(context.Properties); 346Assert.NotNull(context.Failure); 348Assert.NotNull(context.Properties);
WsFederation\WsFederationTest.cs (1)
35Assert.NotNull(scheme);
WsFederation\WsFederationTest_Handler.cs (1)
33Assert.NotNull(scheme);
Microsoft.AspNetCore.Authorization.Test (17)
AuthorizationBuilderTests.cs (1)
101Assert.NotNull(policy);
AuthorizationMiddlewareTests.cs (14)
623Assert.NotNull(context.User?.Identity); 669Assert.NotNull(resource); 786Assert.NotNull(authenticateResultFeature); 787Assert.NotNull(authenticateResultFeature.AuthenticateResult); 849Assert.NotNull(authenticateResultFeature); 850Assert.NotNull(authenticateResultFeature.AuthenticateResult); 873Assert.NotNull(authenticateResultFeature); 874Assert.NotNull(authenticateResultFeature.AuthenticateResult); 899Assert.NotNull(authenticateResultFeature); 900Assert.NotNull(authenticateResultFeature.AuthenticateResult); 941Assert.NotNull(authenticateResultFeature); 942Assert.NotNull(authenticateResultFeature.AuthenticateResult); 967Assert.NotNull(authenticateResultFeature); 968Assert.NotNull(authenticateResultFeature.AuthenticateResult);
DefaultAuthorizationServiceTests.cs (1)
189Assert.NotNull(allowed.Failure);
PolicyEvaluatorTests.cs (1)
155Assert.NotNull(result.AuthorizationFailure);
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (2)
TransformTest.cs (2)
27Assert.NotNull(envNode); 57Assert.NotNull(envNode);
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
133Assert.NotNull(frame.ComponentReferenceCaptureAction);
Microsoft.AspNetCore.Components.Endpoints.Tests (49)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (6)
75Assert.NotNull(metadata); 96Assert.NotNull(metadata); 118Assert.NotNull(metadata); 140Assert.NotNull(metadata); 163Assert.NotNull(metadata); 189Assert.NotNull(metadata);
Discovery\ComponentApplicationBuilderTests.cs (6)
20Assert.NotNull(app); 55Assert.NotNull(app); 97Assert.NotNull(app); 131Assert.NotNull(app); 183Assert.NotNull(app); 247Assert.NotNull(app);
EndpointHtmlRendererTest.cs (34)
89Assert.NotNull(preambleMarker.PrerenderId); 204Assert.NotNull(preambleMarker.PrerenderId); 253Assert.NotNull(preambleMarker.PrerenderId); 313Assert.NotNull(marker.Descriptor); 345Assert.NotNull(preambleMarker.PrerenderId); 346Assert.NotNull(preambleMarker.Descriptor); 410Assert.NotNull(preambleMarker.Descriptor); 421Assert.NotNull(markerMarker.Descriptor); 464Assert.NotNull(marker.Descriptor); 503Assert.NotNull(marker.Descriptor); 513Assert.NotNull(serverComponent.ParameterDefinitions); 542Assert.NotNull(preambleMarker.PrerenderId); 543Assert.NotNull(preambleMarker.Descriptor); 593Assert.NotNull(preambleMarker.PrerenderId); 594Assert.NotNull(preambleMarker.Descriptor); 605Assert.NotNull(serverComponent.ParameterDefinitions); 1076Assert.NotNull(marker.PrerenderId); 1077Assert.NotNull(marker.Descriptor); 1106Assert.NotNull(marker.Descriptor); 1174Assert.NotNull(preambleMarker.PrerenderId); 1218Assert.NotNull(stateContent.ServerStore); 1223Assert.NotNull(stateContent.WebAssemblyStore); 1284Assert.NotNull(stateContent.ServerStore); 1289Assert.NotNull(stateContent.WebAssemblyStore); 1294Assert.NotNull(stateContent.ServerStore); 1296Assert.NotNull(stateContent.WebAssemblyStore); 1338Assert.NotNull(stateContent.ServerStore); 1343Assert.NotNull(stateContent.WebAssemblyStore); 1404Assert.NotNull(stateContent.ServerStore); 1409Assert.NotNull(stateContent.WebAssemblyStore); 1414Assert.NotNull(stateContent.ServerStore); 1416Assert.NotNull(stateContent.WebAssemblyStore); 1475Assert.NotNull(stateContent.ServerStore); 1487Assert.NotNull(stateContent.WebAssemblyStore);
RazorComponentEndpointFactoryTest.cs (1)
45Assert.NotNull(endpoint.RequestDelegate);
RazorComponentResultTest.cs (2)
343Assert.NotNull(initialOutputTask); 376Assert.NotNull(initialOutputTask);
Microsoft.AspNetCore.Components.Forms.Tests (2)
EditContextTest.cs (1)
222Assert.NotNull(eventArgs);
src\Components\Shared\test\AssertFrame.cs (1)
133Assert.NotNull(frame.ComponentReferenceCaptureAction);
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\CircuitIdFactoryTest.cs (1)
19Assert.NotNull(secret.Secret);
Circuits\ServerAuthenticationStateProviderTest.cs (2)
32Assert.NotNull(actualAuthenticationState1); 41Assert.NotNull(actualAuthenticationState2);
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
232Assert.NotNull(message); 257Assert.NotNull(message);
Microsoft.AspNetCore.Components.Tests (67)
ComponentFactoryTest.cs (20)
25Assert.NotNull(instance); 53Assert.NotNull(instance); 57Assert.NotNull(component.Property1); 58Assert.NotNull(component.GetProperty2()); 59Assert.NotNull(component.Property3); 60Assert.NotNull(component.Property4); 86Assert.NotNull(instance); 88Assert.NotNull(component.Property1); 89Assert.NotNull(component.GetProperty2()); 90Assert.NotNull(component.Property3); 91Assert.NotNull(component.KeyedProperty); 96Assert.NotNull(((ComponentWithInjectProperties)component).Property4); 111Assert.NotNull(instance); 114Assert.NotNull(component.Property1); 153Assert.NotNull(instance.Property1); 203Assert.NotNull(instance.Property1); 246Assert.NotNull(instance); 248Assert.NotNull(component.Property1); 249Assert.NotNull(component.Property2); 250Assert.NotNull(component.Property3); // Property injection should still work.
EventCallbackTest.cs (4)
125Assert.NotNull(arg); 233Assert.NotNull(arg); 341Assert.NotNull(arg); 413Assert.NotNull(arg);
OwningComponentBaseTest.cs (1)
23Assert.NotNull(component1.MyService);
RendererTest.cs (8)
778Assert.NotNull(receivedArgs); 942Assert.NotNull(receivedArgs); 1427Assert.NotNull(arg); 1529Assert.NotNull(arg); 1631Assert.NotNull(arg); 1741Assert.NotNull(arg); 1859Assert.NotNull(arg); 1977Assert.NotNull(arg);
Rendering\RendererSynchronizationContextTest.cs (2)
60Assert.NotNull(exception); 197Assert.NotNull(exception);
Rendering\RenderTreeBuilderTest.cs (1)
21Assert.NotNull(frames.Array);
RenderTreeDiffBuilderTest.cs (9)
359Assert.NotNull(oldComponent); 373Assert.NotNull(newComponent); 1603Assert.NotNull(componentInstance); 1848Assert.NotNull(ref1.Id); 1849Assert.NotNull(ref2.Id); 1893Assert.NotNull(ref1.Id); 1915Assert.NotNull(capturedInstance1); 1916Assert.NotNull(capturedInstance2); 1956Assert.NotNull(capturedInstance);
Routing\RouteTableFactoryTests.cs (15)
180Assert.NotNull(context.Handler); 194Assert.NotNull(context.Handler); 208Assert.NotNull(context.Handler); 222Assert.NotNull(context.Handler); 236Assert.NotNull(context.Handler); 307Assert.NotNull(context.Handler); 324Assert.NotNull(context.Handler); 345Assert.NotNull(context.Handler); 367Assert.NotNull(context.Handler); 777Assert.NotNull(context.Handler); 795Assert.NotNull(context.Handler); 920Assert.NotNull(context.Handler); 951Assert.NotNull(context.Handler); 972Assert.NotNull(context.Handler); 974Assert.NotNull(context.Parameters);
src\Components\Shared\test\AssertFrame.cs (1)
133Assert.NotNull(frame.ComponentReferenceCaptureAction);
StackObjectPoolTest.cs (6)
19Assert.NotNull(instance1); 20Assert.NotNull(instance2); 56Assert.NotNull(instance3); 71Assert.NotNull(instance1); 72Assert.NotNull(instance2); 73Assert.NotNull(instance3);
Microsoft.AspNetCore.Components.Web.Tests (15)
Forms\EditFormTest.cs (1)
76Assert.NotNull(returnedEditContext);
Forms\InputBaseTest.cs (4)
396Assert.NotNull(component.AdditionalAttributes); 453Assert.NotNull(component.AdditionalAttributes); 488Assert.NotNull(component.AdditionalAttributes); 516Assert.NotNull(component.AdditionalAttributes);
Forms\InputDateTest.cs (1)
49Assert.NotNull(inputSelectComponent.Element);
Forms\InputNumberTest.cs (1)
49Assert.NotNull(inputSelectComponent.Element);
Forms\InputRadioTest.cs (1)
73Assert.All(inputRadioComponents, inputRadio => Assert.NotNull(inputRadio.Element));
Forms\InputSelectTest.cs (1)
208Assert.NotNull(inputSelectComponent.Element);
Forms\InputTextAreaTest.cs (1)
23Assert.NotNull(inputSelectComponent.Element);
Forms\InputTextTest.cs (1)
23Assert.NotNull(inputSelectComponent.Element);
Forms\Mapping\FormMappingScopeTest.cs (2)
43Assert.NotNull(capturedContext); 73Assert.NotNull(capturedContext);
src\Components\Shared\test\AssertFrame.cs (1)
133Assert.NotNull(frame.ComponentReferenceCaptureAction);
Virtualization\VirtualizeTest.cs (1)
92Assert.NotNull(renderedVirtualize);
Microsoft.AspNetCore.Components.WebAssembly.Tests (13)
Hosting\WebAssemblyHostBuilderTest.cs (10)
48Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 66Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 88Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 89Assert.NotNull(host.Services.GetRequiredService<List<string>>()); 105Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 122Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 123Assert.NotNull(host.Services.GetRequiredService<TestServiceThatTakesStringBuilder>()); 133Assert.NotNull(builder.HostEnvironment); 148Assert.NotNull(navigationManager); 247Assert.NotNull(loggerProvider);
Hosting\WebAssemblyHostConfigurationTest.cs (1)
75Assert.NotNull(children);
PullFromJSDataStreamTest.cs (1)
26Assert.NotNull(pullFromJSDataStream);
WebAssemblyHotReloadTest.cs (1)
16Assert.NotNull(hotReloadManager);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
ConcurrencyLimiterEventSourceTests.cs (1)
35Assert.NotNull(eventData);
Microsoft.AspNetCore.CookiePolicy.Test (25)
CookieConsentTests.cs (11)
225Assert.NotNull(consentCookie.Expires); 273Assert.NotNull(consentCookie.Expires); 409Assert.NotNull(consentCookie.Expires); 451Assert.NotNull(consentCookie.Expires); 516Assert.NotNull(testCookie.Expires); 580Assert.NotNull(consentCookie.Expires); 588Assert.NotNull(manualCookie.Expires); // Expires may not exactly match to the second. 633Assert.NotNull(consentCookie.Expires); 641Assert.NotNull(manualCookie.Expires); // Expires may not exactly match to the second. 678Assert.NotNull(consentCookie.Expires); 686Assert.NotNull(manualCookie.Expires); // Expires may not exactly match to the second.
CookiePolicyTests.cs (14)
60Assert.NotNull(transaction.SetCookie); 80Assert.NotNull(transaction.SetCookie); 100Assert.NotNull(transaction.SetCookie); 109Assert.NotNull(transaction.SetCookie); 129Assert.NotNull(transaction.SetCookie); 149Assert.NotNull(transaction.SetCookie); 169Assert.NotNull(transaction.SetCookie); 190Assert.NotNull(transaction.SetCookie); 211Assert.NotNull(transaction.SetCookie); 232Assert.NotNull(transaction.SetCookie); 274Assert.NotNull(transaction.SetCookie); 313Assert.NotNull(transaction.SetCookie); 398Assert.NotNull(transaction.SetCookie); 449Assert.NotNull(transaction.SetCookie);
Microsoft.AspNetCore.Cors.Test (8)
CorsEndpointConventionBuilderExtensionsTests.cs (4)
28Assert.NotNull(metadata); 49Assert.NotNull(metadata); 50Assert.NotNull(metadata.Policy); 71Assert.NotNull(metadata);
CorsPolicyTests.cs (1)
24Assert.NotNull(corsPolicy.IsOriginAllowed);
CorsServiceTests.cs (3)
324Assert.NotNull(result); 555Assert.NotNull(result); 916Assert.NotNull(result.AllowedOrigin);
Microsoft.AspNetCore.Cryptography.Internal.Tests (3)
WeakReferenceHelpersTests.cs (3)
23Assert.NotNull(wr); 42Assert.NotNull(wr); 66Assert.NotNull(wr);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
188Assert.NotNull(certInStore);
Microsoft.AspNetCore.DataProtection.Tests (26)
ActivatorTests.cs (7)
26Assert.NotNull(services); 27Assert.NotNull(retVal1); 28Assert.NotNull(retVal2); 30Assert.NotNull(retVal3); 47Assert.NotNull(retVal1); 48Assert.NotNull(retVal2); 50Assert.NotNull(retVal3);
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactoryTest.cs (1)
47Assert.NotNull(encryptor);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactoryTest.cs (1)
47Assert.NotNull(encryptor);
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactoryTest.cs (1)
44Assert.NotNull(encryptor);
Internal\KeyManagementOptionsPostSetupTest.cs (2)
162Assert.NotNull(repository); 171Assert.NotNull(options.XmlEncryptor);
Internal\KeyManagementOptionsSetupTest.cs (2)
32Assert.NotNull(options.AuthenticatedEncryptorConfiguration); 67Assert.NotNull(options.AuthenticatedEncryptorConfiguration);
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
575Assert.NotNull(protectedData);
KeyManagement\XmlKeyManagerTests.cs (3)
45Assert.NotNull(keyManager.KeyRepository); 49Assert.NotNull(keyManager.KeyEncryptor); 69Assert.NotNull(keyManager.KeyRepository);
ServiceCollectionTests.cs (4)
26Assert.NotNull(services.GetService<IOptions<DataProtectionOptions>>()); 67Assert.NotNull(services.GetService(descriptor.ServiceType)); 94Assert.NotNull(repository); 105Assert.NotNull(options.XmlEncryptor);
XmlAssert.cs (4)
21Assert.NotNull(expected); 22Assert.NotNull(actual); 31Assert.NotNull(expected); 32Assert.NotNull(actual);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (5)
CertificateManagerTests.cs (5)
53Assert.NotNull(exportedCertificate); 152Assert.NotNull(exportedCertificate); 186Assert.NotNull(exportedCertificate); 219Assert.NotNull(exportedCertificate); 307Assert.NotNull(exportedCertificate);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests (1)
DatabaseErrorPageTest.cs (1)
210Assert.NotNull(options.MigrationsEndPointPath.Value); // guard
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
HealthCheckMiddlewareTests.cs (2)
903Assert.NotNull(options.ResultStatusCodes); 913Assert.NotNull(options.ResultStatusCodes);
Microsoft.AspNetCore.Diagnostics.Tests (11)
DeveloperExceptionPageMiddlewareTest.cs (4)
223Assert.NotNull(listener.DiagnosticUnhandledException?.HttpContext); 224Assert.NotNull(listener.DiagnosticUnhandledException?.Exception); 567Assert.NotNull(listener.DiagnosticUnhandledException?.HttpContext); 568Assert.NotNull(listener.DiagnosticUnhandledException?.Exception);
ExceptionHandlerTest.cs (7)
89Assert.NotNull(exception); 402Assert.NotNull(exception); 498Assert.NotNull(listener.EndRequest?.HttpContext); 503Assert.NotNull(listener.DiagnosticHandledException?.HttpContext); 504Assert.NotNull(listener.DiagnosticHandledException?.Exception); 562Assert.NotNull(exception); 568Assert.NotNull(exception.InnerException);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (26)
ConverterTests\MessageTypeInfoResolverTests.cs (1)
48Assert.NotNull(typeInfo);
GrpcJsonTranscodingServiceExtensionsTests.cs (1)
24Assert.NotNull(options1.JsonSettings);
UnaryServerCallHandlerTests.cs (24)
76Assert.NotNull(request); 115Assert.NotNull(request); 176Assert.NotNull(request); 216Assert.NotNull(request); 255Assert.NotNull(request); 302Assert.NotNull(request); 352Assert.NotNull(request); 402Assert.NotNull(request); 452Assert.NotNull(request); 502Assert.NotNull(request); 534Assert.NotNull(request); 561Assert.NotNull(request); 659Assert.NotNull(request); 685Assert.NotNull(request); 712Assert.NotNull(request); 1334Assert.NotNull(request); 1501Assert.NotNull(request); 1545Assert.NotNull(request); 1576Assert.NotNull(httpContext); 1590Assert.NotNull(feature); 1681Assert.NotNull(request); 1730Assert.NotNull(request); 1771Assert.NotNull(request); 1802Assert.NotNull(request);
Microsoft.AspNetCore.Grpc.Swagger.Tests (8)
Binding\BodyTests.cs (1)
36Assert.NotNull(messageSchema);
Binding\ParametersTests.cs (2)
69Assert.NotNull(operation.RequestBody); 86Assert.NotNull(operation.RequestBody);
GrpcSwaggerServiceExtensionsTests.cs (1)
44Assert.NotNull(swagger);
SchemaGeneratorIntegrationTests.cs (4)
89Assert.NotNull(valuesSchema.Items); 128Assert.NotNull(schema.Items); 147Assert.NotNull(resolvedSchema.AdditionalProperties); 160Assert.NotNull(schema.AdditionalProperties);
Microsoft.AspNetCore.HostFiltering.Tests (2)
MiddlewareConfigurationManagerTests.cs (2)
31Assert.NotNull(configurationBeforeChange); 55Assert.NotNull(configurationAfterChange);
Microsoft.AspNetCore.Hosting.Tests (70)
ConfigureBuilderTests.cs (4)
16Assert.NotNull(methodInfo); 28Assert.NotNull(ex); 33Assert.NotNull(ex.InnerException); 40Assert.NotNull(service);
HostingApplicationDiagnosticsTests.cs (14)
202Assert.NotNull(measurementActivity); 410Assert.NotNull(Activity.Current); 429Assert.NotNull(pair.Value); 430Assert.NotNull(Activity.Current); 437Assert.NotNull(Activity.Current); 454Assert.NotNull(Activity.Current); 478Assert.NotNull(Activity.Current); 502Assert.NotNull(Activity.Current); 530Assert.NotNull(Activity.Current); 816Assert.NotNull(context); 825Assert.NotNull(Activity.Current); 896Assert.NotNull(o); 898Assert.NotNull(property); 900Assert.NotNull(value);
HostingApplicationTests.cs (4)
29Assert.NotNull(context.HttpContext); 33Assert.NotNull(context.HttpContext); 44Assert.NotNull(context.HttpContext); 117Assert.NotNull(dummyActivity);
HostingMetricsTests.cs (1)
176Assert.NotNull(contextFeature);
Http\DefaultHttpContextFactoryTests.cs (3)
76Assert.NotNull(context); 77Assert.NotNull(context.FormOptions); 78Assert.NotNull(context.ServiceScopeFactory);
Internal\HostingEventSourceTests.cs (3)
38Assert.NotNull(eventData); 61Assert.NotNull(eventData); 117Assert.NotNull(eventData);
StartupManagerTests.cs (7)
321Assert.NotNull(startup.StartupInstance); 328Assert.NotNull(instance.DisposableService); 354Assert.NotNull(options); 401Assert.NotNull(options); 461Assert.NotNull(app.ApplicationServices); 463Assert.NotNull(app.ApplicationServices); 636Assert.NotNull(app.ApplicationServices);
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (12)
287Assert.NotNull(file); 303Assert.NotNull(file); 320Assert.NotNull(file); 337Assert.NotNull(contents); 356Assert.NotNull(file); 407Assert.NotNull(file); 422Assert.NotNull(file); 438Assert.NotNull(contents); 453Assert.NotNull(contents); 468Assert.NotNull(contents); 486Assert.NotNull(contents); 602Assert.NotNull(contents);
WebHostBuilderTests.cs (16)
165Assert.NotNull(services); 208Assert.NotNull(host.Services.GetService<ILoggerFactory>()); 254Assert.NotNull(context.HostingEnvironment); 255Assert.NotNull(context.Configuration); 369Assert.NotNull(host.Services.GetService<IConfiguration>()); 411Assert.NotNull(config); 481Assert.NotNull(host.Services.GetRequiredService<ServiceA>()); 482Assert.NotNull(host.Services.GetRequiredService<ServiceB>()); 956Assert.NotNull(startup.ServiceADescriptor); 957Assert.NotNull(startup.ServiceA); 1253Assert.NotNull(testSink); 1302Assert.NotNull(filter); 1685Assert.NotNull(heDescriptor); 1686Assert.NotNull(heDescriptor.ImplementationInstance); 1689Assert.NotNull(wheDescriptor); 1690Assert.NotNull(wheDescriptor.ImplementationInstance);
WebHostTests.cs (6)
145Assert.NotNull(host); 742Assert.NotNull(host.Services.GetRequiredService<IOptions<object>>()); 878Assert.NotNull(httpContext); 901Assert.NotNull(httpContext); 957Assert.NotNull(capturedContext); 958Assert.NotNull(capturedRequest);
Microsoft.AspNetCore.Http.Abstractions.Tests (38)
EndpointHttpContextExtensionsTests.cs (1)
83Assert.NotNull(feature);
HttpValidationProblemDetailsJsonConverterTest.cs (3)
65Assert.NotNull(problemDetails); 108Assert.NotNull(problemDetails); 147Assert.NotNull(problemDetails);
ProblemDetailsJsonConverterTest.cs (4)
49Assert.NotNull(problemDetails); 80Assert.NotNull(problemDetails); 112Assert.NotNull(problemDetails); 144Assert.NotNull(problemDetails);
RouteValueDictionaryTests.cs (28)
196Assert.NotNull(dict._propertyStorage); 213Assert.NotNull(dict._propertyStorage); 239Assert.NotNull(dict._propertyStorage); 260Assert.NotNull(dict._propertyStorage); 275Assert.NotNull(dict._propertyStorage); 290Assert.NotNull(dict._propertyStorage); 318Assert.NotNull(dict._propertyStorage); 335Assert.NotNull(dict._propertyStorage); 371Assert.NotNull(dict._propertyStorage); 389Assert.NotNull(dict._propertyStorage); 475Assert.NotNull(dict._propertyStorage); 489Assert.NotNull(dict._propertyStorage); 503Assert.NotNull(dict._propertyStorage); 707Assert.NotNull(dict._propertyStorage); 975Assert.NotNull(dict._propertyStorage); 1102Assert.NotNull(dict._propertyStorage); 1122Assert.NotNull(dict._propertyStorage); 1142Assert.NotNull(dict._propertyStorage); 1163Assert.NotNull(dict._propertyStorage); 1207Assert.NotNull(dict._propertyStorage); 1222Assert.NotNull(dict._propertyStorage); 1237Assert.NotNull(dict._propertyStorage); 1436Assert.NotNull(dict._propertyStorage); 1579Assert.NotNull(dict._propertyStorage); 1811Assert.NotNull(dict._propertyStorage); 1949Assert.NotNull(dict._propertyStorage); 1964Assert.NotNull(dict._propertyStorage); 1979Assert.NotNull(dict._propertyStorage);
UseMiddlewareTest.cs (2)
215Assert.NotNull(middlewareFactory.Created); 216Assert.NotNull(middlewareFactory.Released);
Microsoft.AspNetCore.Http.Connections.Tests (39)
HttpConnectionDispatcherTests.cs (12)
74Assert.NotNull(connectionId); 814Assert.NotNull(connectionHttpContext); 830Assert.NotNull(connectionHttpContext.RequestServices); 832Assert.NotNull(connectionHttpContext.Response.Headers); 835Assert.NotNull(endpointFeature); 1663Assert.NotNull(connection.GetHttpContext()); 2141Assert.NotNull(connection.DisposeAndRemoveTask); 2365Assert.NotNull(connection.Features.Get<IStatefulReconnectFeature>()); 2397Assert.NotNull(reconnectFeature); 2471Assert.NotNull(reconnectFeature); 3856Assert.NotNull(context); 4002Assert.NotNull(reconnectFeature);
HttpConnectionManagerTests.cs (18)
50Assert.NotNull(connection.ConnectionId); 56Assert.NotNull(connection.Transport); 57Assert.NotNull(connection.Application); 150Assert.NotNull(connection.ConnectionId); 166Assert.NotNull(connection.ConnectionId); 167Assert.NotNull(connection.ConnectionToken); 168Assert.NotNull(transport); 186Assert.NotNull(connection.ConnectionId); 187Assert.NotNull(transport); 208Assert.NotNull(connection.ConnectionId); 209Assert.NotNull(transport); 229Assert.NotNull(connection.ConnectionId); 230Assert.NotNull(transport); 365Assert.NotNull(connection.ConnectionId); 366Assert.NotNull(connection.Transport); 381Assert.NotNull(connection.ConnectionId); 382Assert.NotNull(connection.Transport); 383Assert.NotNull(connection.Application);
Internal\HttpConnectionsEventSourceTests.cs (3)
41Assert.NotNull(eventData); 68Assert.NotNull(eventData); 95Assert.NotNull(eventData);
MapConnectionHandlerTests.cs (6)
304Assert.NotNull(metaData); 306Assert.NotNull(optionsMetaData); 340Assert.NotNull(metaData); 342Assert.NotNull(optionsMetaData); 373Assert.NotNull(endpoint.Metadata.GetMetadata<IEnableCorsAttribute>()); 378Assert.NotNull(endpoint.Metadata.GetMetadata<IEnableCorsAttribute>());
Microsoft.AspNetCore.Http.Extensions.Tests (112)
HeaderDictionaryTypeExtensionsTest.cs (2)
133Assert.NotNull(result); 256Assert.NotNull(results);
HttpRequestJsonExtensionsTests.cs (5)
94Assert.NotNull(result); 112Assert.NotNull(result); 226Assert.NotNull(result); 248Assert.NotNull(result); 271Assert.NotNull(result);
JsonOptionsTests.cs (2)
26Assert.NotNull(options.TypeInfoResolver); 44Assert.NotNull(options.TypeInfoResolver);
ParameterBindingMethodCacheTests.cs (10)
34Assert.NotNull(call); 52Assert.NotNull(call); 74Assert.NotNull(call); 106Assert.NotNull(call); 130Assert.NotNull(call); 184Assert.NotNull(call); 206Assert.NotNull(block); 394Assert.NotNull(result); 412Assert.NotNull(result); 462Assert.NotNull(result);
ProblemDetailsDefaultWriterTest.cs (14)
50Assert.NotNull(problemDetails); 155Assert.NotNull(problemDetails); 195Assert.NotNull(problemDetails); 235Assert.NotNull(problemDetails); 274Assert.NotNull(problemDetails); 317Assert.NotNull(problemDetails); 360Assert.NotNull(problemDetails); 403Assert.NotNull(problemDetails); 446Assert.NotNull(problemDetails); 480Assert.NotNull(problemDetails); 527Assert.NotNull(problemDetails); 560Assert.NotNull(problemDetails); 596Assert.NotNull(problemDetails); 628Assert.NotNull(problemDetails);
ProblemDetailsServiceCollectionExtensionsTest.cs (17)
100Assert.NotNull(jsonOptions.Value); 101Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver); 102Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(ProblemDetails), jsonOptions.Value.SerializerOptions)); 103Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(TypeA), jsonOptions.Value.SerializerOptions)); 165Assert.NotNull(jsonOptions.Value); 166Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver); 167Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(ProblemDetails), jsonOptions.Value.SerializerOptions)); 168Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(TypeA), jsonOptions.Value.SerializerOptions)); 186Assert.NotNull(jsonOptions.Value); 187Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver); 188Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(ProblemDetails), jsonOptions.Value.SerializerOptions)); 206Assert.NotNull(jsonOptions.Value); 207Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver); 209Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(ProblemDetails), jsonOptions.Value.SerializerOptions)); 210Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver.GetTypeInfo(typeof(TypeA), jsonOptions.Value.SerializerOptions)); 231Assert.NotNull(jsonOptions.Value); 232Assert.NotNull(jsonOptions.Value.SerializerOptions.TypeInfoResolver);
PropertyAsParameterInfoTests.cs (2)
158Assert.NotNull(parameterInfo.DefaultValue); 160Assert.NotNull(parameterInfo.RawDefaultValue);
RequestDelegateFactoryTests.cs (7)
271Assert.NotNull(methodInfo); 878Assert.NotNull(deserializedRequestBody); 1359Assert.NotNull(deserializedResponseBody); 1389Assert.NotNull(deserializedResponseBody); 1390Assert.NotNull(deserializedResponseBody["$type"]); 2907Assert.NotNull(acceptsMetadata); 2925Assert.NotNull(metadataResult.CachedFactoryContext);
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
563Assert.NotNull(log1); 571Assert.NotNull(log2);
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
162Assert.NotNull(handler); 183Assert.NotNull(generatedCodeAttribute); 328Assert.NotNull(dependencyContext);
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (4)
250Assert.NotNull(arg); 253Assert.NotNull(todo); 306Assert.NotNull(todo0); 309Assert.NotNull(todo1);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (27)
43Assert.NotNull(formFilesArgument!["file"]); 48Assert.NotNull(acceptsMetadata); 50Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 78Assert.NotNull(formFiles["file"]); 83Assert.NotNull(acceptsMetadata); 85Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 115Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 153Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 196Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 229Assert.NotNull(httpContext.Items["file1"]); 237Assert.NotNull(acceptsMetadata); 239Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 269Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 309Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 410Assert.NotNull(formFilesArgument!["file"]); 420Assert.NotNull(acceptsMetadata); 558Assert.NotNull(formArgument); 574Assert.NotNull(acceptsMetadata); 605Assert.NotNull(formArgument); 621Assert.NotNull(acceptsMetadata); 680Assert.NotNull(httpContext.Items["message"]); 683Assert.NotNull(httpContext.Items["name"]); 713Assert.NotNull(httpContext.Items["message"]); 743Assert.NotNull(httpContext.Items["message"]); 773Assert.NotNull(httpContext.Items["message"]); 839Assert.NotNull(formFilesArgument!["file"]); 843Assert.NotNull(formArgument);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (4)
255Assert.NotNull(rawRequestBody); 296Assert.NotNull(rawRequestBody); 337Assert.NotNull(rawRequestBody); 378Assert.NotNull(rawRequestBody);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (6)
320Assert.NotNull(deserializedResponseBody); 469Assert.NotNull(todo); 571Assert.NotNull(todo); 655Assert.NotNull(todo); 678Assert.NotNull(node); 679Assert.NotNull(node["$type"]);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
217Assert.NotNull(p);
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (6)
36Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 72Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 104Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 141Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 213Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault()); 250Assert.NotNull(endpoint.Metadata.OfType<IAntiforgeryMetadata>().SingleOrDefault());
Microsoft.AspNetCore.Http.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
162Assert.NotNull(handler); 183Assert.NotNull(generatedCodeAttribute); 328Assert.NotNull(dependencyContext);
Microsoft.AspNetCore.Http.Results.Tests (10)
HttpResultsHelperTests.cs (4)
73Assert.NotNull(body); 106Assert.NotNull(body); 140Assert.NotNull(body); 174Assert.NotNull(body);
ResultsTests.cs (3)
219Assert.NotNull(result.RouteValues); 311Assert.NotNull(fileStreamResult.FileStream); 1289Assert.NotNull(result.ProblemDetails.Extensions);
TypedResultsTests.cs (3)
179Assert.NotNull(result.RouteValues); 395Assert.NotNull(fileStreamResult.FileStream); 1105Assert.NotNull(result.ProblemDetails.Extensions);
Microsoft.AspNetCore.Http.Tests (52)
DefaultHttpContextTests.cs (12)
83Assert.NotNull(context.User); 90Assert.NotNull(context.User); 97Assert.NotNull(context.User); 113Assert.NotNull(context.Features.Get<IItemsFeature>()); 114Assert.NotNull(items); 127Assert.NotNull(context.Features.Get<IHttpRequestIdentifierFeature>()); 128Assert.NotNull(traceIdentifier); 142Assert.NotNull(context.Features.Get<IItemsFeature>()); 218Assert.NotNull(context.RequestServices); 245Assert.NotNull(context.RequestServices); 385Assert.NotNull(v); 405Assert.NotNull(v);
Features\FormFeatureTests.cs (32)
73Assert.NotNull(formFeature); 74Assert.NotNull(formFeature.Form); 110Assert.NotNull(formFeature); 111Assert.NotNull(formFeature.Form); 213Assert.NotNull(formCollection); 217Assert.NotNull(formFeature); 218Assert.NotNull(formFeature.Form); 224Assert.NotNull(formCollection.Files); 248Assert.NotNull(formCollection); 252Assert.NotNull(formFeature); 253Assert.NotNull(formFeature.Form); 261Assert.NotNull(formCollection.Files); 285Assert.NotNull(formCollection); 289Assert.NotNull(formFeature); 290Assert.NotNull(formFeature.Form); 297Assert.NotNull(formCollection.Files); 333Assert.NotNull(formCollection); 337Assert.NotNull(formFeature); 338Assert.NotNull(formFeature.Form); 346Assert.NotNull(formCollection.Files); 370Assert.NotNull(formCollection); 374Assert.NotNull(formFeature); 375Assert.NotNull(formFeature.Form); 382Assert.NotNull(formCollection.Files); 418Assert.NotNull(formCollection); 422Assert.NotNull(formFeature); 423Assert.NotNull(formFeature.Form); 431Assert.NotNull(formCollection.Files); 567Assert.NotNull(formCollection); 571Assert.NotNull(formFeature); 572Assert.NotNull(formFeature.Form); 580Assert.NotNull(formCollection.Files);
Features\HttpRequestIdentifierFeatureTests.cs (1)
15Assert.NotNull(id);
Features\RequestBodyPipeFeatureTests.cs (1)
24Assert.NotNull(pipeBody);
Internal\DefaultHttpRequestTests.cs (4)
142Assert.NotNull(query0); 215Assert.NotNull(routeValuesFeature); 219Assert.NotNull(request.RouteValues); 247Assert.NotNull(bodyPipe);
Internal\DefaultHttpResponseTests.cs (1)
65Assert.NotNull(bodyPipe);
Internal\ItemsDictionaryTests.cs (1)
18Assert.NotNull(en.GetEnumerator());
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingEndpointConventionBuilderTests.cs (1)
31Assert.NotNull(metadata);
Microsoft.AspNetCore.HttpOverrides.Tests (1)
IPNetworkTest.cs (1)
118Assert.NotNull(network);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (37)
DefaultPocoTest.cs (2)
47Assert.NotNull(userStore); 48Assert.NotNull(userManager);
SqlStoreOnlyUsersTestBase.cs (1)
128Assert.NotNull(db.Users.FirstOrDefault(u => u.UserName == user.UserName));
SqlStoreTestBase.cs (2)
227Assert.NotNull(db.Users.FirstOrDefault(u => u.UserName == user.UserName)); 316Assert.NotNull(user);
UserOnlyCustomContextTest.cs (2)
92Assert.NotNull(userStore); 93Assert.NotNull(userManager);
UserOnlyTest.cs (4)
53Assert.NotNull(userStore); 54Assert.NotNull(userManager); 69Assert.NotNull(userStore); 70Assert.NotNull(manager);
UserStoreEncryptPersonalDataTest.cs (2)
89Assert.NotNull(await manager.FindByNameAsync(newName)); 92Assert.NotNull(await manager.FindByNameAsync(newName));
UserStoreGuidKeyTest.cs (4)
66Assert.NotNull(sp.GetRequiredService<UserManager<GuidUser>>()); 67Assert.NotNull(sp.GetRequiredService<RoleManager<GuidRole>>()); 83Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<Guid>>>()); 84Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<Guid>>>());
UserStoreIntKeyTest.cs (4)
44Assert.NotNull(sp.GetRequiredService<UserManager<IntUser>>()); 45Assert.NotNull(sp.GetRequiredService<RoleManager<IntRole>>()); 61Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<int>>>()); 62Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<int>>>());
UserStoreStringKeyTest.cs (4)
45Assert.NotNull(sp.GetRequiredService<UserManager<StringUser>>()); 46Assert.NotNull(sp.GetRequiredService<RoleManager<StringRole>>()); 62Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<string>>>()); 63Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<string>>>());
UserStoreTest.cs (12)
37Assert.NotNull(db.Users.FirstOrDefault(u => u.UserName == guid)); 227Assert.NotNull(user1); 228Assert.NotNull(user2); 257Assert.NotNull(user2); 287Assert.NotNull(user1); 288Assert.NotNull(user2); 317Assert.NotNull(role1); 318Assert.NotNull(role2); 347Assert.NotNull(role); 348Assert.NotNull(role2); 378Assert.NotNull(role1); 379Assert.NotNull(role2);
Microsoft.AspNetCore.Identity.FunctionalTests (11)
ManagementTests.cs (5)
37Assert.NotNull(await UserStories.EnableTwoFactorAuthentication(index)); 172Assert.NotNull(principals[1].Identities.Single().Claims.Single(c => c.Type == ClaimTypes.AuthenticationMethod).Value); 299Assert.NotNull(jsonData); 301Assert.NotNull(jsonData["Id"]); 316Assert.NotNull(jsonData["Authenticator Key"]);
MapIdentityApiTests.cs (6)
389Assert.NotNull(user); 408Assert.NotNull(user); 1398Assert.NotNull(accessToken); 1399Assert.NotNull(refreshToken); 1451Assert.NotNull(problem); 1461Assert.NotNull(problem);
Microsoft.AspNetCore.Identity.InMemory.Test (6)
FunctionalTest.cs (6)
57Assert.NotNull(transaction2.SetCookie); 92Assert.NotNull(transaction2.SetCookie); 131Assert.NotNull(transaction2.SetCookie); 155Assert.NotNull(transaction5.SetCookie); 190Assert.NotNull(transaction2.SetCookie); 207Assert.NotNull(transaction5.SetCookie);
Microsoft.AspNetCore.Identity.Specification.Tests (38)
IdentityResultAssert.cs (4)
21Assert.NotNull(result); 30Assert.NotNull(result); 39Assert.NotNull(result); 49Assert.NotNull(result);
IdentitySpecificationTestBase.cs (1)
543Assert.NotNull(await roleMgr.FindByNameAsync(roleName));
UserManagerSpecificationTests.cs (33)
228Assert.NotNull(await manager.FindByNameAsync(newName)); 246Assert.NotNull(await manager.FindByNameAsync(newUsername)); 346Assert.NotNull(await manager.FindByIdAsync(await manager.GetUserIdAsync(user))); 507Assert.NotNull(stamp); 509Assert.NotNull(token); 559Assert.NotNull(user); 563Assert.NotNull(logins); 582Assert.NotNull(logins); 606Assert.NotNull(logins); 638Assert.NotNull(user); 645Assert.NotNull(logins); 654Assert.NotNull(logins); 674Assert.NotNull(u); 692Assert.NotNull(stamp); 997Assert.NotNull(stamp); 999Assert.NotNull(token); 1022Assert.NotNull(stamp); 1024Assert.NotNull(token); 1048Assert.NotNull(stamp); 1097Assert.NotNull(token); 1135Assert.NotNull(token); 1648Assert.NotNull(stamp); 1650Assert.NotNull(token); 1672Assert.NotNull(stamp); 1714Assert.NotNull(factors); 1810Assert.NotNull(factors); 1817Assert.NotNull(factors); 1824Assert.NotNull(factors); 1828Assert.NotNull(factors); 1833Assert.NotNull(factors); 1850Assert.NotNull(stamp); 1852Assert.NotNull(token); 1869Assert.NotNull(token);
Microsoft.AspNetCore.Identity.Test (53)
IdentityBuilderTest.cs (18)
22Assert.NotNull(sp.GetRequiredService<IRoleValidator<PocoRole>>()); 25Assert.NotNull(sp.GetRequiredService<RoleManager<PocoRole>>()); 48Assert.NotNull(sp.GetRequiredService<IRoleValidator<PocoRole>>()); 60Assert.NotNull(thingy); 70Assert.NotNull(thingy); 85Assert.NotNull(thingy); 101Assert.NotNull(thingy); 111Assert.NotNull(thingy); 121Assert.NotNull(thingy); 131Assert.NotNull(thingy); 143Assert.NotNull(myUserManager); 155Assert.NotNull(myRoleManager); 172Assert.NotNull(myUserManager); 187Assert.NotNull(userValidator); 190Assert.NotNull(pwdValidator); 193Assert.NotNull(hasher); 215Assert.NotNull(provider.GetService<IOptions<SecurityStampValidatorOptions>>()); 235Assert.NotNull(provider.GetService<IOptions<SecurityStampValidatorOptions>>());
IdentityOptionsTest.cs (4)
45Assert.NotNull(setup); 47Assert.NotNull(optionsGetter); 65Assert.NotNull(optionsGetter); 85Assert.NotNull(options);
PasswordHasherTest.cs (1)
186Assert.NotNull(options.Value.Rng); // should have a default value
SecurityStampValidatorTest.cs (25)
87Assert.NotNull(context.Properties); 88Assert.NotNull(context.Options); 89Assert.NotNull(context.Principal); 91Assert.NotNull(context.Principal); 145Assert.NotNull(context.Properties); 146Assert.NotNull(context.Options); 147Assert.NotNull(context.Principal); 186Assert.NotNull(context.Properties); 187Assert.NotNull(context.Options); 188Assert.NotNull(context.Principal); 190Assert.NotNull(context.Principal); 227Assert.NotNull(context.Properties); 228Assert.NotNull(context.Options); 229Assert.NotNull(context.Principal); 264Assert.NotNull(context.Properties); 265Assert.NotNull(context.Options); 266Assert.NotNull(context.Principal); 268Assert.NotNull(context.Principal); 307Assert.NotNull(context.Properties); 308Assert.NotNull(context.Options); 309Assert.NotNull(context.Principal); 317Assert.NotNull(context.Principal); 351Assert.NotNull(context.Properties); 352Assert.NotNull(context.Options); 353Assert.NotNull(context.Principal);
SignInManagerTest.cs (1)
1122Assert.NotNull(externalProperties);
UserClaimsPrincipalFactoryTest.cs (2)
91Assert.NotNull(identity); 95Assert.NotNull(claims);
UserManagerTest.cs (2)
25Assert.NotNull(manager.PasswordHasher); 26Assert.NotNull(manager.Options);
Microsoft.AspNetCore.InternalTesting (1)
ExceptionAssertions.cs (1)
250Assert.NotNull(exception);
Microsoft.AspNetCore.InternalTesting.Tests (40)
AspNetTestAssemblyRunnerTest.cs (10)
23Assert.NotNull(runner.Fixtures); 38Assert.NotNull(runner.Fixtures); 52Assert.NotNull(runSummary); 57Assert.NotNull(runner.Fixtures); 73Assert.NotNull(runSummary); 78Assert.NotNull(runner.Fixtures); 92Assert.NotNull(runSummary); 97Assert.NotNull(runner.Fixtures); 114Assert.NotNull(runSummary); 119Assert.NotNull(runner.Fixtures);
AssemblyFixtureTest.cs (2)
27Assert.NotNull(AssemblyFixture); 30Assert.NotNull(CollectionFixture);
LoggedTestXunitTests.cs (20)
27Assert.NotNull(Logger); 28Assert.NotNull(LoggerFactory); 29Assert.NotNull(TestSink); 30Assert.NotNull(TestOutputHelper); 37Assert.NotNull(Logger); 38Assert.NotNull(LoggerFactory); 39Assert.NotNull(TestSink); 40Assert.NotNull(TestOutputHelper); 42Assert.NotNull(argument); 48Assert.NotNull(Logger); 49Assert.NotNull(LoggerFactory); 50Assert.NotNull(TestSink); 51Assert.NotNull(TestOutputHelper); 58Assert.NotNull(Logger); 59Assert.NotNull(LoggerFactory); 60Assert.NotNull(TestSink); 61Assert.NotNull(TestOutputHelper); 63Assert.NotNull(argument); 102Assert.NotNull(argument); 122Assert.NotNull(LoggerFactory);
MaximumOSVersionTest.cs (4)
43Assert.NotNull(versionKey); 45Assert.NotNull(currentVersion); 56Assert.NotNull(versionKey); 58Assert.NotNull(currentVersion);
MinimumOSVersionTest.cs (4)
42Assert.NotNull(versionKey); 44Assert.NotNull(currentVersion); 55Assert.NotNull(versionKey); 57Assert.NotNull(currentVersion);
Microsoft.AspNetCore.JsonPatch.Tests (5)
IntegrationTests\DictionaryIntegrationTest.cs (4)
197Assert.NotNull(actualValue1); 242Assert.NotNull(actualValue2); 266Assert.NotNull(actualValue2); 290Assert.NotNull(actualValue1);
IntegrationTests\HeterogenousCollectionTests.cs (1)
43Assert.NotNull(circle);
Microsoft.AspNetCore.Localization.Tests (1)
RequestLocalizationOptionsTest.cs (1)
27Assert.NotNull(options.DefaultRequestCulture);
Microsoft.AspNetCore.Mvc.Abstractions.Test (15)
ModelBinding\BindingInfoTest.cs (14)
25Assert.NotNull(bindingInfo); 44Assert.NotNull(bindingInfo); 61Assert.NotNull(bindingInfo); 78Assert.NotNull(bindingInfo); 80Assert.NotNull(bindingInfo.RequestPredicate); 118Assert.NotNull(bindingInfo); 139Assert.NotNull(bindingInfo); 167Assert.NotNull(bindingInfo); 190Assert.NotNull(bindingInfo); 216Assert.NotNull(bindingInfo); 243Assert.NotNull(bindingInfo); 265Assert.NotNull(bindingInfo); 287Assert.NotNull(bindingInfo); 308Assert.NotNull(bindingInfo);
ModelBinding\ModelMetadataTest.cs (1)
238Assert.NotNull(elementType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (37)
DefaultApiDescriptionProviderTest.cs (25)
372Assert.NotNull(id.RouteInfo); 501Assert.NotNull(responseType.ModelMetadata); 519Assert.NotNull(responseType.ModelMetadata); 538Assert.NotNull(responseType.ModelMetadata); 560Assert.NotNull(responseType.ModelMetadata); 578Assert.NotNull(responseType.ModelMetadata); 594Assert.NotNull(responseType.ModelMetadata); 610Assert.NotNull(responseType.ModelMetadata); 707Assert.NotNull(responseType.ModelMetadata); 721Assert.NotNull(responseType.ModelMetadata); 728Assert.NotNull(responseType.ModelMetadata); 824Assert.NotNull(responseType.ModelMetadata); 831Assert.NotNull(responseType.ModelMetadata); 880Assert.NotNull(responseType.ModelMetadata); 894Assert.NotNull(responseType.ModelMetadata); 901Assert.NotNull(responseType.ModelMetadata); 950Assert.NotNull(responseType.ModelMetadata); 964Assert.NotNull(responseType.ModelMetadata); 971Assert.NotNull(responseType.ModelMetadata); 1020Assert.NotNull(responseType.ModelMetadata); 1027Assert.NotNull(responseType.ModelMetadata); 1034Assert.NotNull(responseType.ModelMetadata); 1041Assert.NotNull(responseType.ModelMetadata); 1124Assert.NotNull(responseTypes.ModelMetadata); 1200Assert.NotNull(responseType.ModelMetadata);
EndpointMetadataApiDescriptionProviderTest.cs (12)
609Assert.NotNull(apiExplorerSettings); 647Assert.NotNull(nameParam.ParameterDescriptor); 653Assert.NotNull(descriptor.ParameterInfo); 657Assert.NotNull(description); 1222Assert.NotNull(parameter.RouteInfo); 1223Assert.NotNull(parameter.RouteInfo.Constraints); 1250Assert.NotNull(parameter.RouteInfo); 1251Assert.NotNull(parameter.RouteInfo.Constraints); 1281Assert.NotNull(descriptionMetadata); 1285Assert.NotNull(summaryMetadata); 1312Assert.NotNull(descriptionMetadata); 1316Assert.NotNull(summaryMetadata);
Microsoft.AspNetCore.Mvc.Core.Test (245)
ApplicationModels\ActionModelTest.cs (3)
42Assert.NotNull(action2.Parameters); 47Assert.NotNull(action2.Selectors); 138Assert.NotNull(value1);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
42Assert.NotNull(value); 58Assert.NotNull(value);
ApplicationModels\AttributeRouteModelTests.cs (5)
51Assert.NotNull(value1); 215Assert.NotNull(combined); 230Assert.NotNull(combined); 260Assert.NotNull(combined); 276Assert.NotNull(combined);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (4)
98Assert.NotNull(authorizeFilters.First().Policy); 142Assert.NotNull(authorizationFilter.Policy); 170Assert.NotNull(actionFilter.AuthorizeData); 171Assert.NotNull(actionFilter.PolicyProvider);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (30)
126Assert.NotNull(main.Parameters); 145Assert.NotNull(main.Parameters); 170Assert.NotNull(main.Parameters); 203Assert.NotNull(fromBody.Parameters); 224Assert.NotNull(notFromBody.Parameters); 242Assert.NotNull(action.RouteValues); 263Assert.NotNull(anonymousAction.EndpointMetadata); 271Assert.NotNull(authorizeAction.EndpointMetadata); 288Assert.NotNull(action.EndpointMetadata); 485Assert.NotNull(action.ActionConstraints); 488Assert.NotNull(methodConstraint.HttpMethods); 510Assert.NotNull(action.ActionConstraints); 513Assert.NotNull(methodConstraint.HttpMethods); 516Assert.NotNull(action.AttributeRouteInfo); 537Assert.NotNull(action.AttributeRouteInfo); 538Assert.NotNull(action.AttributeRouteInfo.Template); 576Assert.NotNull(action.AttributeRouteInfo); 577Assert.NotNull(action.AttributeRouteInfo.Template); 617Assert.NotNull(controllerAndAction.AttributeRouteInfo); 620Assert.NotNull(controllerActionAndOverride.AttributeRouteInfo); 651Assert.NotNull(action.AttributeRouteInfo); 746Assert.NotNull(action.AttributeRouteInfo); 793Assert.NotNull(descriptor.AttributeRouteInfo); 816Assert.NotNull(getAction.AttributeRouteInfo); 822Assert.NotNull(editAction.AttributeRouteInfo); 844Assert.NotNull(getAction.AttributeRouteInfo); 854Assert.NotNull(editAction.AttributeRouteInfo); 898Assert.NotNull(actionDescriptors); 955Assert.NotNull(action.GetProperty<ApiDescriptionActionData>()); 971Assert.NotNull(action.GetProperty<ApiDescriptionActionData>());
ApplicationModels\ControllerModelTest.cs (3)
41Assert.NotNull(controller2.ControllerProperties); 43Assert.NotNull(controller2.Selectors); 140Assert.NotNull(value1);
ApplicationModels\DefaultApplicationModelProviderTest.cs (12)
484Assert.NotNull(method); 499Assert.NotNull(method); 516Assert.NotNull(method); 531Assert.NotNull(method); 547Assert.NotNull(method); 562Assert.NotNull(method); 583Assert.NotNull(method); 601Assert.NotNull(method); 639Assert.NotNull(method); 655Assert.NotNull(method); 673Assert.NotNull(method); 735Assert.NotNull(method);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (22)
30Assert.NotNull(parameterModel.BindingInfo); 48Assert.NotNull(parameterModel.BindingInfo); 129Assert.NotNull(bindingInfo); 138Assert.NotNull(bindingInfo); 163Assert.NotNull(bindingInfo); 189Assert.NotNull(bindingInfo); 215Assert.NotNull(bindingInfo); 237Assert.NotNull(bindingInfo); 258Assert.NotNull(bindingInfo); 279Assert.NotNull(bindingInfo); 661Assert.NotNull(bindingInfo); 682Assert.NotNull(bindingInfo); 703Assert.NotNull(bindingInfo); 723Assert.NotNull(bindingInfo); 744Assert.NotNull(bindingInfo); 765Assert.NotNull(bindingInfo); 786Assert.NotNull(bindingInfo); 807Assert.NotNull(bindingInfo); 828Assert.NotNull(bindingInfo); 849Assert.NotNull(bindingInfo); 869Assert.NotNull(bindingInfo); 892Assert.NotNull(bindingInfo);
ApplicationModels\ParameterModelTest.cs (1)
74Assert.NotNull(value1);
ApplicationModels\PropertyModelTest.cs (1)
65Assert.NotNull(value1);
Authorization\AuthorizeFilterTest.cs (2)
214Assert.NotNull(authorizationContext.HttpContext.User?.Identity); 486Assert.NotNull(actual.Policy);
ConsumesAttributeTests.cs (1)
320Assert.NotNull(resourceExecutingContext.Result);
ControllerBaseTest.cs (16)
1673Assert.NotNull(result); 1691Assert.NotNull(result); 1715Assert.NotNull(result); 1735Assert.NotNull(result); 1759Assert.NotNull(result); 1779Assert.NotNull(result); 1803Assert.NotNull(result); 1823Assert.NotNull(result); 1847Assert.NotNull(result); 1872Assert.NotNull(result); 1901Assert.NotNull(result); 1925Assert.NotNull(result); 1953Assert.NotNull(result); 2251Assert.NotNull(contentResult.ContentType); 2861Assert.NotNull(context.PropertyFilter); 2866Assert.NotNull(modelMetadata);
Controllers\ControllerActivatorProviderTest.cs (1)
125Assert.NotNull(releaseDelegate);
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1196Assert.NotNull(transferInfo);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (3)
159Assert.NotNull(builder.PartManager); 183Assert.NotNull(builder.PartManager); 205Assert.NotNull(builder.PartManager);
Filters\MiddlewareFilterBuilderTest.cs (7)
38Assert.NotNull(pipeline); 63Assert.NotNull(pipeline1); 70Assert.NotNull(pipeline2); 99Assert.NotNull(pipeline); 150Assert.NotNull(pipeline); 212Assert.NotNull(pipeline); 280Assert.NotNull(pipeline);
Filters\MiddlewareFilterConfigurationProviderTest.cs (2)
40Assert.NotNull(configureDelegate); 58Assert.NotNull(configureDelegate);
Filters\MiddlewareFilterTest.cs (2)
364Assert.NotNull(controller); 371Assert.NotNull(controller);
Formatters\JsonOutputFormatterTestBase.cs (1)
155Assert.NotNull(body);
Infrastructure\ActionMethodExecutorTest.cs (7)
113Assert.NotNull(result.Value); 142Assert.NotNull(result.Value); 171Assert.NotNull(result.Value); 328Assert.NotNull(result.Value); 357Assert.NotNull(result.Value); 411Assert.NotNull(result.Value); 454Assert.NotNull(methodInfo);
Infrastructure\ControllerActionInvokerTest.cs (21)
60Assert.NotNull(listener.BeforeAction?.ActionDescriptor); 61Assert.NotNull(listener.BeforeAction?.HttpContext); 64Assert.NotNull(routeValues); 97Assert.NotNull(listener.AfterAction?.ActionDescriptor); 98Assert.NotNull(listener.AfterAction?.HttpContext); 136Assert.NotNull(listener.BeforeResource?.ActionDescriptor); 137Assert.NotNull(listener.BeforeResource?.ExecutingContext); 138Assert.NotNull(listener.BeforeResource?.Filter); 139Assert.NotNull(listener.AfterResource?.ActionDescriptor); 140Assert.NotNull(listener.AfterResource?.ExecutedContext); 141Assert.NotNull(listener.AfterResource?.Filter); 186Assert.NotNull(listener.BeforeResource?.ActionDescriptor); 187Assert.NotNull(listener.BeforeResource?.ExecutingContext); 188Assert.NotNull(listener.BeforeResource?.Filter); 189Assert.NotNull(listener.AfterResource?.ActionDescriptor); 190Assert.NotNull(listener.AfterResource?.ExecutedContext); 191Assert.NotNull(listener.AfterResource?.Filter); 222Assert.NotNull(controllerContext); 254Assert.NotNull(controllerContext); 1656Assert.NotNull(method); 1681Assert.NotNull(actionDescriptor.MethodInfo);
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (2)
134Assert.NotNull(captured); 151Assert.NotNull(captured);
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (3)
46Assert.NotNull(problemDetails); 85Assert.NotNull(problemDetails); 116Assert.NotNull(problemDetails);
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
156Assert.NotNull(json); 189Assert.NotNull(json);
JsonOptionsTest.cs (2)
25Assert.NotNull(options.TypeInfoResolver); 43Assert.NotNull(options.TypeInfoResolver);
ModelBinding\Binders\CollectionModelBinderProviderTest.cs (1)
62Assert.NotNull(elementType);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
623Assert.NotNull(modelError.ErrorMessage); 688Assert.NotNull(modelError.ErrorMessage);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
633Assert.NotNull(bindingContext.Model); 801Assert.NotNull(modelError.ErrorMessage); 835Assert.NotNull(modelError.ErrorMessage);
ModelBinding\Binders\DictionaryModelBinderTest.cs (2)
46Assert.NotNull(dictionary); 87Assert.NotNull(dictionary);
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
412Assert.NotNull(bindingContext.Result.Model);
ModelBinding\Binders\HeaderModelBinderTests.cs (3)
230Assert.NotNull(bindingContext.Result.Model); 293Assert.NotNull(entry); 317Assert.NotNull(entry);
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (1)
57Assert.NotNull(state);
ModelBinding\EnumerableValueProviderTest.cs (2)
267Assert.NotNull(result); 298Assert.NotNull(provider);
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (3)
743Assert.NotNull(result); 809Assert.NotNull(result); 840Assert.NotNull(result);
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (3)
75Assert.NotNull(propertyMetadata.ContainerMetadata); 81Assert.NotNull(propertyMetadata.ContainerMetadata); 194Assert.NotNull(property.PropertyGetter);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (2)
30Assert.NotNull(metadata.AdditionalValues); 272Assert.NotNull(elementMetadata);
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (3)
24Assert.NotNull(context.ValidationMetadata.PropertyValidationFilter); 80Assert.NotNull(context.ValidationMetadata.PropertyValidationFilter); 102Assert.NotNull(context.ValidationMetadata.PropertyValidationFilter);
ModelBinding\Metadata\ModelAttributesTest.cs (4)
41Assert.NotNull(rangeAttributes[0]); 44Assert.NotNull(rangeAttributes[1]); 50Assert.NotNull(rangeAttributes[0]); 53Assert.NotNull(rangeAttributes[1]);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (3)
25Assert.NotNull(context.ValidationMetadata.ValidationModelName); 43Assert.NotNull(context.ValidationMetadata.ValidationModelName); 78Assert.NotNull(context.ValidationMetadata.ValidationModelName);
ModelBinding\ModelBinderFactoryTest.cs (7)
74Assert.NotNull(c.CreateBinder(c.Metadata.Properties[nameof(Widget.Id)])); 95Assert.NotNull(result); 134Assert.NotNull(result); 149Assert.NotNull(c.CreateBinder(c.Metadata.Properties[nameof(Widget.Id)])); 174Assert.NotNull(result); 214Assert.NotNull(result); 360Assert.NotNull(context.BindingInfo);
ModelBinding\ModelBindingHelperTest.cs (2)
879Assert.NotNull(converted); 893Assert.NotNull(converted);
ModelBinding\RouteValueProviderTests.cs (1)
247Assert.NotNull(result);
ModelBinding\UnsupportedContentTypeFilterTest.cs (1)
42Assert.NotNull(context.Result);
ProducesAttributeTests.cs (2)
139Assert.NotNull(producesAttribute.Type); 150Assert.NotNull(producesAttribute.ContentTypes);
ProducesResponseTypeAttributeTests.cs (1)
56Assert.NotNull(producesResponseTypeAttribute.Type);
RedirectToPageResultTest.cs (4)
110Assert.NotNull(context); 164Assert.NotNull(context); 227Assert.NotNull(context); 278Assert.NotNull(context);
RequestFormLimitsAttributeTest.cs (1)
24Assert.NotNull(formLimitAttributeProperty);
RequireHttpsAttributeTests.cs (3)
97Assert.NotNull(authContext.Result); 123Assert.NotNull(authContext.Result); 186Assert.NotNull(authContext.Result);
ResponseCacheAttributeTest.cs (1)
196Assert.NotNull(filter);
Routing\ActionEndpointFactoryTest.cs (2)
49Assert.NotNull(routeNameMetadata); 399Assert.NotNull(action.RouteValues);
Routing\AttributeRouteTest.cs (1)
90Assert.NotNull(context.Handler);
Routing\ControllerActionEndpointDataSourceTest.cs (5)
442Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>()); 449Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>()); 460Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>()); 467Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>()); 475Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
Routing\UrlHelperExtensionsTest.cs (20)
39Assert.NotNull(actual); 87Assert.NotNull(actual); 119Assert.NotNull(actual); 151Assert.NotNull(actual); 183Assert.NotNull(actual); 233Assert.NotNull(actual); 282Assert.NotNull(actual); 325Assert.NotNull(actual); 373Assert.NotNull(actual); 416Assert.NotNull(actual); 451Assert.NotNull(actual); 478Assert.NotNull(actual); 522Assert.NotNull(actual); 585Assert.NotNull(actual); 627Assert.NotNull(actual); 662Assert.NotNull(actual); 697Assert.NotNull(actual); 742Assert.NotNull(actual); 790Assert.NotNull(actual); 838Assert.NotNull(actual);
Routing\UrlHelperTestBase.cs (5)
920Assert.NotNull(urlHelper); 943Assert.NotNull(urlHelper); 981Assert.NotNull(url); 1022Assert.NotNull(url); 1060Assert.NotNull(url);
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
TestModelMetadataProvider.cs (1)
121Assert.NotNull(property);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
ModelMetadataProviderTest.cs (3)
765Assert.NotNull(metadata.PropertySetter); 766Assert.NotNull(metadata.PropertyGetter); 782Assert.NotNull(metadata.PropertyGetter);
MvcDataAnnotationsMvcOptionsSetup.cs (1)
31Assert.NotNull(optionsSetup);
ValidatableObjectAdapterTest.cs (2)
131Assert.NotNull(results); 167Assert.NotNull(results);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (43)
DelegatingEnumerableTest.cs (1)
51Assert.NotNull(errorWrapper);
EnumerableWrapperProviderFactoryTest.cs (2)
57Assert.NotNull(wrapperProvider); 110Assert.NotNull(wrapperProvider);
EnumerableWrapperProviderTest.cs (3)
30Assert.NotNull(wrappingType); 48Assert.NotNull(wrapped); 50Assert.NotNull(delegatingEnumerable);
SerializableErrorWrapperProviderTest.cs (2)
33Assert.NotNull(wrapped); 35Assert.NotNull(errorWrapper);
SerializableErrorWrapperTests.cs (2)
20Assert.NotNull(wrapper.SerializableError); 37Assert.NotNull(wrapper.SerializableError);
SerializableWrapperProviderFactoryTest.cs (1)
21Assert.NotNull(wrapperProvider);
XmlDataContractSerializerInputFormatterTest.cs (15)
157Assert.NotNull(result); 188Assert.NotNull(result); 221Assert.NotNull(result); 256Assert.NotNull(result); 288Assert.NotNull(result); 315Assert.NotNull(result); 349Assert.NotNull(result); 381Assert.NotNull(result); 407Assert.NotNull(result); 469Assert.NotNull(result); 471Assert.NotNull(result.Model); 552Assert.NotNull(result); 590Assert.NotNull(result); 650Assert.NotNull(result); 709Assert.NotNull(result);
XmlDataContractSerializerOutputFormatterTest.cs (1)
145Assert.NotNull(writerSettings);
XmlSerializerInputFormatterTest.cs (13)
62Assert.NotNull(result); 99Assert.NotNull(result); 135Assert.NotNull(result); 171Assert.NotNull(result); 215Assert.NotNull(result); 351Assert.NotNull(result); 385Assert.NotNull(result); 414Assert.NotNull(result); 486Assert.NotNull(result); 488Assert.NotNull(result.Model); 572Assert.NotNull(result); 611Assert.NotNull(result); 643Assert.NotNull(result);
XmlSerializerOutputFormatterTest.cs (3)
151Assert.NotNull(writerSettings); 329Assert.NotNull(outputFormatterContext.HttpContext.Response.Body); 414Assert.NotNull(outputFormatterContext.HttpContext.Response.ContentLength);
Microsoft.AspNetCore.Mvc.FunctionalTests (151)
ApiBehaviorTest.cs (3)
94Assert.NotNull(kvp.Value); 195Assert.NotNull(result); 312Assert.NotNull(kvp.Value);
AsyncEnumerableTestBase.cs (1)
98Assert.NotNull(name);
BasicTests.cs (2)
194Assert.NotNull(response.Headers.Location); 408Assert.NotNull(response.Headers.Location);
ContentNegotiationTest.cs (2)
220Assert.NotNull(response.Content); 222Assert.NotNull(contentType);
DoNotRespectBrowserAcceptHeaderTests.cs (8)
51Assert.NotNull(response.Content); 52Assert.NotNull(response.Content.Headers.ContentType); 79Assert.NotNull(response.Content); 80Assert.NotNull(response.Content.Headers.ContentType); 108Assert.NotNull(response.Content); 109Assert.NotNull(response.Content.Headers.ContentType); 139Assert.NotNull(response.Content); 140Assert.NotNull(response.Content.Headers.ContentType);
FileResultTests.cs (74)
44Assert.NotNull(response.Content.Headers.ContentType); 48Assert.NotNull(body); 67Assert.NotNull(response.Content.Headers.ContentType); 70Assert.NotNull(body); 89Assert.NotNull(response.Content.Headers.ContentType); 109Assert.NotNull(response.Content.Headers.ContentType); 131Assert.NotNull(response.Content.Headers.ContentType); 134Assert.NotNull(body); 153Assert.NotNull(response.Content.Headers.ContentType); 173Assert.NotNull(response.Content.Headers.ContentType); 191Assert.NotNull(response.Content.Headers.ContentType); 195Assert.NotNull(body); 199Assert.NotNull(contentDisposition); 217Assert.NotNull(response.Content.Headers.ContentType); 236Assert.NotNull(response.Content.Headers.ContentType); 239Assert.NotNull(body); 256Assert.NotNull(response.Content.Headers.ContentType); 289Assert.NotNull(response.Content.Headers.ContentType); 293Assert.NotNull(body); 300Assert.NotNull(contentDisposition); 314Assert.NotNull(response.Content.Headers.ContentType); 318Assert.NotNull(body); 331Assert.NotNull(response.Content.Headers.ContentType); 335Assert.NotNull(body); 353Assert.NotNull(response.Content.Headers.ContentType); 356Assert.NotNull(body); 376Assert.NotNull(response.Content.Headers.ContentType); 397Assert.NotNull(response.Content.Headers.ContentType); 412Assert.NotNull(response.Content.Headers.ContentType); 416Assert.NotNull(body); 420Assert.NotNull(contentDisposition); 438Assert.NotNull(response.Content.Headers.ContentType); 457Assert.NotNull(response.Content.Headers.ContentType); 459Assert.NotNull(body); 508Assert.NotNull(response.Content.Headers.ContentType); 512Assert.NotNull(body); 519Assert.NotNull(contentDisposition); 532Assert.NotNull(response.Content.Headers.ContentType); 536Assert.NotNull(body); 555Assert.NotNull(response.Content.Headers.ContentType); 557Assert.NotNull(body); 577Assert.NotNull(response.Content.Headers.ContentType); 597Assert.NotNull(response.Content.Headers.ContentType); 599Assert.NotNull(body); 601Assert.NotNull(response.Content.Headers.ContentType); 616Assert.NotNull(response.Content.Headers.ContentType); 620Assert.NotNull(body); 624Assert.NotNull(contentDisposition); 642Assert.NotNull(response.Content.Headers.ContentType); 661Assert.NotNull(response.Content.Headers.ContentType); 663Assert.NotNull(body); 681Assert.NotNull(response.Content.Headers.ContentType); 714Assert.NotNull(response.Content.Headers.ContentType); 718Assert.NotNull(body); 725Assert.NotNull(contentDisposition); 741Assert.NotNull(response.Content.Headers.ContentType); 745Assert.NotNull(body); 749Assert.NotNull(contentDisposition); 768Assert.NotNull(response.Content.Headers.ContentType); 771Assert.NotNull(body); 774Assert.NotNull(contentDisposition); 792Assert.NotNull(response.Content.Headers.ContentType); 811Assert.NotNull(response.Content.Headers.ContentType); 814Assert.NotNull(body); 817Assert.NotNull(contentDisposition); 834Assert.NotNull(response.Content.Headers.ContentType); 839Assert.NotNull(contentDisposition); 858Assert.NotNull(response.Content.Headers.ContentType); 863Assert.NotNull(contentDisposition); 881Assert.NotNull(response.Content.Headers.ContentType); 887Assert.NotNull(contentDisposition); 918Assert.NotNull(response.Content.Headers.ContentType); 922Assert.NotNull(body); 929Assert.NotNull(contentDisposition);
FormFileUploadTest.cs (2)
76Assert.NotNull(product); 78Assert.NotNull(product.Specs);
GlobalAuthorizationFilterTestBase.cs (1)
42Assert.NotNull(response.Headers.Location);
HtmlGenerationTest.cs (1)
202Assert.NotNull(imgElement);
HttpActionResultTests.cs (1)
43Assert.NotNull(result);
JsonOutputFormatterTestBase.cs (1)
193Assert.NotNull(obj.Value<string>("traceId"));
JsonPatchInputFormatterTest.cs (10)
47Assert.NotNull(product); 48Assert.NotNull(product.Reviews); 67Assert.NotNull(product); 68Assert.NotNull(product.Reviews); 87Assert.NotNull(product); 88Assert.NotNull(product.Reviews); 108Assert.NotNull(product); 109Assert.NotNull(product.Reviews); 129Assert.NotNull(product); 130Assert.NotNull(product.Reviews);
NonNullableReferenceTypesTest.cs (1)
123Assert.NotNull(content);
RazorPagesTest.cs (4)
897Assert.NotNull(response.Content); 898Assert.NotNull(response.Content.Headers.ContentType); 913Assert.NotNull(response.Content); 914Assert.NotNull(response.Content.Headers.ContentType);
RespectBrowserAcceptHeaderTests.cs (4)
51Assert.NotNull(response.Content); 52Assert.NotNull(response.Content.Headers.ContentType); 70Assert.NotNull(response.Content); 71Assert.NotNull(response.Content.Headers.ContentType);
RoutingTestsBase.cs (3)
947Assert.NotNull(response); 958Assert.NotNull(response); 971Assert.NotNull(body);
SerializableErrorTests.cs (4)
59Assert.NotNull(response.Content); 60Assert.NotNull(response.Content.Headers.ContentType); 83Assert.NotNull(response.Content); 84Assert.NotNull(response.Content.Headers.ContentType);
TempDataInCookiesTest.cs (7)
82Assert.NotNull(cookieTempDataProviderCookie.Value.Value); 99Assert.NotNull(setCookieHeaderValue); 103Assert.NotNull(setCookieHeaderValue.Expires); 132Assert.NotNull(setCookieHeader); 155Assert.NotNull(setCookieHeader); 159Assert.NotNull(setCookieHeader.Expires); 185Assert.NotNull(setCookieHeader);
TestingInfrastructureInheritanceTests.cs (2)
62Assert.NotNull(factory.Services); 63Assert.NotNull(factory.Services.GetService(typeof(IConfiguration)));
TestingInfrastructureTests.cs (8)
201Assert.NotNull(factory.Services); 202Assert.NotNull(factory.Services.GetService(typeof(IConfiguration))); 210Assert.NotNull(factory.Services); 211Assert.NotNull(factory.Services.GetService(typeof(IConfiguration))); 219Assert.NotNull(factory.Services); 220Assert.NotNull(factory.Services.GetService(typeof(IConfiguration))); 228Assert.NotNull(factory.Services); 229Assert.NotNull(factory.Services.GetService(typeof(IConfiguration)));
XmlDataContractSerializerFormattersWrappingTest.cs (3)
242Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 284Assert.NotNull(mvcErrors); 287Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
XmlDataContractSerializerInputFormatterTest.cs (6)
69Assert.NotNull(modelBindingInfo); 70Assert.NotNull(modelBindingInfo.Store); 72Assert.NotNull(modelBindingInfo.Store.Address); 100Assert.NotNull(modelBindingInfo); 101Assert.NotNull(modelBindingInfo.Store); 103Assert.NotNull(modelBindingInfo.ModelStateErrorMessages);
XmlSerializerFormattersWrappingTest.cs (3)
225Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 266Assert.NotNull(mvcErrors); 269Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
Microsoft.AspNetCore.Mvc.IntegrationTests (247)
ActionParametersIntegrationTest.cs (20)
59Assert.NotNull(modelBindingResult.Model); 105Assert.NotNull(boundModel); 106Assert.NotNull(boundModel.Address); 115Assert.NotNull(state); 152Assert.NotNull(modelBindingResult.Model); 154Assert.NotNull(boundModel.Address); 198Assert.NotNull(modelBindingResult.Model); 200Assert.NotNull(boundModel.Address); 239Assert.NotNull(modelBindingResult.Model); 284Assert.NotNull(boundModel); 285Assert.NotNull(boundModel.Address); 295Assert.NotNull(state); 330Assert.NotNull(modelBindingResult.Model); 375Assert.NotNull(modelBindingResult.Model); 623Assert.NotNull(modelBindingResult.Model); 796Assert.NotNull(entry); 837Assert.NotNull(entry); 842Assert.NotNull(entry); 882Assert.NotNull(entry); 887Assert.NotNull(entry);
ArrayModelBinderIntegrationTest.cs (1)
364Assert.NotNull(model.Aliases);
BinderTypeBasedModelBinderIntegrationTest.cs (10)
119Assert.NotNull(modelState[key].RawValue); // Value is set by test model binder, no need to validate it. 184Assert.NotNull(entry); 186Assert.NotNull(entry.RawValue); // Value is set by test model binder, no need to validate it. 228Assert.NotNull(person.Address); 236Assert.NotNull(entry); 238Assert.NotNull(entry.RawValue); // Value is set by test model binder, no need to validate it. 266Assert.NotNull(boundPerson.Address); 274Assert.NotNull(modelState[key].RawValue); // Value is set by test model binder, no need to validate it. 305Assert.NotNull(boundPerson.Address); 313Assert.NotNull(modelState[key].RawValue); // Value is set by test model binder, no need to validate it.
BindingSourceMetadataProviderIntegrationTest.cs (1)
54Assert.NotNull(boundPerson);
BodyValidationIntegrationTests.cs (12)
49Assert.NotNull(boundPerson); 129Assert.NotNull(boundPerson); 175Assert.NotNull(boundPerson); 214Assert.NotNull(boundPerson); 254Assert.NotNull(boundPerson); 293Assert.NotNull(boundPerson); 335Assert.NotNull(boundPerson); 387Assert.NotNull(boundPerson); 539Assert.NotNull(boundPerson.Address); 588Assert.NotNull(state); 731Assert.NotNull(boundPerson); 841Assert.NotNull(person.Address);
ByteArrayModelBinderIntegrationTest.cs (2)
54Assert.NotNull(boundPerson); 55Assert.NotNull(boundPerson.Token);
CancellationTokenModelBinderIntegrationTest.cs (2)
45Assert.NotNull(boundPerson); 81Assert.NotNull(boundPerson);
CollectionModelBinderIntegrationTest.cs (1)
959Assert.NotNull(model); // Guard
ComplexRecordIntegrationTest.cs (40)
67Assert.NotNull(model.Customer); 69Assert.NotNull(model.Customer.Address); 117Assert.NotNull(model.Customer); 119Assert.NotNull(model.Customer.Address); 169Assert.NotNull(model.Customer); 223Assert.NotNull(model.Customer); 272Assert.NotNull(model.Customer); 321Assert.NotNull(model.Customer); 369Assert.NotNull(model.Customer); 421Assert.NotNull(model.Customer); 473Assert.NotNull(model.Customer); 526Assert.NotNull(model.Customer); 579Assert.NotNull(model.Customer); 633Assert.NotNull(model.Customer); 683Assert.NotNull(model.Customer); 740Assert.NotNull(model.Customer); 1939Assert.NotNull(model.Customer); 1941Assert.NotNull(model.Customer.Address); 2093Assert.NotNull(model.Customer); 2147Assert.NotNull(model.Customer); 2205Assert.NotNull(model.Customer); 2558Assert.NotNull(model); 2612Assert.NotNull(model); 2670Assert.NotNull(person.Address); 2677Assert.NotNull(entry); 2725Assert.NotNull(entry); 2775Assert.NotNull(person.Address); 2785Assert.NotNull(entry); 2838Assert.NotNull(entry); 2888Assert.NotNull(model); 2937Assert.NotNull(model.Info.Value); 3005Assert.NotNull(person.Photo); 3075Assert.NotNull(model.InnerModels); 3141Assert.NotNull(model.Photo); 3191Assert.NotNull(model.Mother); 3193Assert.NotNull(model.Mother.Photo); 3200Assert.NotNull(model.Photo); 3266Assert.NotNull(model.Children); 3289Assert.NotNull(model.Photo); 3362Assert.NotNull(model.Inner);
ComplexTypeIntegrationTestBase.cs (39)
104Assert.NotNull(model.Customer); 106Assert.NotNull(model.Customer.Address); 154Assert.NotNull(model.Customer); 156Assert.NotNull(model.Customer.Address); 206Assert.NotNull(model.Customer); 255Assert.NotNull(model.Customer); 304Assert.NotNull(model.Customer); 362Assert.NotNull(model.Customer); 414Assert.NotNull(model.Customer); 466Assert.NotNull(model.Customer); 529Assert.NotNull(model.Customer); 582Assert.NotNull(model.Customer); 636Assert.NotNull(model.Customer); 686Assert.NotNull(model.Customer); 743Assert.NotNull(model.Customer); 2086Assert.NotNull(model.Customer); 2088Assert.NotNull(model.Customer.Address); 2255Assert.NotNull(model.Customer); 2309Assert.NotNull(model.Customer); 2367Assert.NotNull(model.Customer); 2731Assert.NotNull(model); 2785Assert.NotNull(model); 2849Assert.NotNull(person.Address); 2856Assert.NotNull(entry); 2904Assert.NotNull(entry); 2966Assert.NotNull(person.Address); 2976Assert.NotNull(entry); 3029Assert.NotNull(entry); 3081Assert.NotNull(model); 3141Assert.NotNull(model.Info.Value); 3213Assert.NotNull(person.Photo); 3290Assert.NotNull(model.InnerModels); 3363Assert.NotNull(model.Photo); 3413Assert.NotNull(model.Mother); 3415Assert.NotNull(model.Mother.Photo); 3422Assert.NotNull(model.Photo); 3495Assert.NotNull(model.Children); 3518Assert.NotNull(model.Photo); 3607Assert.NotNull(model.Inner);
DictionaryModelBinderIntegrationTest.cs (1)
1187Assert.NotNull(model); // Guard
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
53Assert.NotNull(boundPerson); 112Assert.NotNull(boundPerson);
FormCollectionModelBindingIntegrationTest.cs (2)
58Assert.NotNull(boundPerson.Address); 108Assert.NotNull(file);
FormFileModelBindingIntegrationTest.cs (35)
58Assert.NotNull(boundPerson.Address); 105Assert.NotNull(boundPerson.Address); 156Assert.NotNull(boundPerson.Address); 217Assert.NotNull(boundPerson); 218Assert.NotNull(boundPerson.Address); 304Assert.NotNull(fleet.Garage); 305Assert.NotNull(fleet.Garage.Vehicles); 369Assert.NotNull(fleet.Garage); 370Assert.NotNull(fleet.Garage.Vehicles); 374Assert.NotNull(vehicle.BackupVehicle); 435Assert.NotNull(boundPerson); 436Assert.NotNull(boundPerson.Address); 496Assert.NotNull(boundContainer); 497Assert.NotNull(boundContainer.ListProperty); 510Assert.NotNull(modelStateEntry); 541Assert.NotNull(boundContainer); 585Assert.NotNull(boundContainer); 586Assert.NotNull(boundContainer.ListProperty); 599Assert.NotNull(modelStateEntry); 640Assert.NotNull(file); 727Assert.NotNull(car.Specs); 787Assert.NotNull(house.Garage); 788Assert.NotNull(house.Garage.Cars); 852Assert.NotNull(house.Garage); 853Assert.NotNull(house.Garage.Cars); 912Assert.NotNull(house.Garage); 952Assert.NotNull(house.Garage); 953Assert.NotNull(house.Garage.Cars); 1014Assert.NotNull(car.Specs); 1069Assert.NotNull(container.FormFiles); 1118Assert.NotNull(container.FormFiles); 1165Assert.NotNull(level2.Level1); 1167Assert.NotNull(container); 1168Assert.NotNull(container.FormFiles); 1229Assert.NotNull(container.Dictionary);
GenericModelBinderIntegrationTest.cs (6)
47Assert.NotNull(formCollection); 85Assert.NotNull(formCollection); 215Assert.NotNull(model[0]); 373Assert.NotNull(model); 496Assert.NotNull(model); 628Assert.NotNull(model);
HeaderModelBinderIntegrationTest.cs (14)
56Assert.NotNull(boundPerson); 95Assert.NotNull(boundPerson); 96Assert.NotNull(boundPerson.Address); 137Assert.NotNull(boundPerson); 138Assert.NotNull(boundPerson.Address); 181Assert.NotNull(boundContainer); 182Assert.NotNull(boundContainer.ListProperty); 191Assert.NotNull(modelStateEntry); 228Assert.NotNull(boundContainer); 229Assert.NotNull(boundContainer.ListProperty); 238Assert.NotNull(modelStateEntry); 292Assert.NotNull(modelBindingResult.Model); 344Assert.NotNull(product); 345Assert.NotNull(product.Manufacturer);
JQueryFormatModelBindingIntegrationTest.cs (4)
45Assert.NotNull(model.Address); 48Assert.NotNull(address.State); 83Assert.NotNull(model.Address); 86Assert.NotNull(address.State);
ParameterBinderExtensions.cs (2)
22Assert.NotNull(optionsAccessor?.Value); // Guard 24Assert.NotNull(modelMetadataProvider); // Guard
SimpleTypeModelBinderIntegrationTest.cs (7)
51Assert.NotNull(boundPerson); 52Assert.NotNull(boundPerson.Address); 95Assert.NotNull(boundPerson); 96Assert.NotNull(boundPerson.Address); 687Assert.NotNull(boundPerson); 689Assert.NotNull(boundPerson.Address); 698Assert.NotNull(entry);
TryUpdateModelIntegrationTest.cs (25)
147Assert.NotNull(element.Address); 155Assert.NotNull(modelState["[0].Name"]); 156Assert.NotNull(modelState["[1].Address.Street"]); 228Assert.NotNull(model.Address); 268Assert.NotNull(model.Address); 330Assert.NotNull(model.Address); 375Assert.NotNull(state); 404Assert.NotNull(state); 434Assert.NotNull(model.Address); 481Assert.NotNull(model.Address); 523Assert.NotNull(model.Address); 564Assert.NotNull(model.Address); 611Assert.NotNull(model.Address); 747Assert.NotNull(element.Address); 755Assert.NotNull(modelState["prefix[0].Name"]); 756Assert.NotNull(modelState["prefix[1].Address.Street"]); 823Assert.NotNull(model.Address); 863Assert.NotNull(model.Address); 915Assert.NotNull(model.Address); 951Assert.NotNull(model.Address); 998Assert.NotNull(model.Address); 1035Assert.NotNull(model.Address); 1079Assert.NotNull(modelStateEntry); 1190Assert.NotNull(model.Address); 1242Assert.NotNull(model.Address);
ValidationIntegrationTests.cs (11)
276Assert.NotNull(model.Customer); 367Assert.NotNull(model.Customer); 406Assert.NotNull(model.Customer); 459Assert.NotNull(model.Items); 1425Assert.NotNull(state); 1463Assert.NotNull(state); 1525Assert.NotNull(state); 1808Assert.NotNull(modelBindingResult.Model); 1851Assert.NotNull(modelBindingResult.Model); 1896Assert.NotNull(modelBindingResult.Model); 1943Assert.NotNull(modelBindingResult.Model);
ValidationWithRecordIntegrationTests.cs (10)
257Assert.NotNull(model.Customer); 339Assert.NotNull(model.Customer); 378Assert.NotNull(model.Customer); 424Assert.NotNull(model.Items); 1269Assert.NotNull(state); 1307Assert.NotNull(state); 1611Assert.NotNull(modelBindingResult.Model); 1654Assert.NotNull(modelBindingResult.Model); 1699Assert.NotNull(modelBindingResult.Model); 1746Assert.NotNull(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.Localization.Test (16)
HtmlLocalizerTest.cs (2)
112Assert.NotNull(localizedHtmlString); 152Assert.NotNull(exception);
MvcLocalizationMvcBuilderExtensionsTest.cs (7)
48Assert.NotNull(service); 54Assert.NotNull(service); 61Assert.NotNull(service); 66Assert.NotNull(service); 70Assert.NotNull(service); 75Assert.NotNull(service); 80Assert.NotNull(service);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (7)
48Assert.NotNull(service); 54Assert.NotNull(service); 61Assert.NotNull(service); 66Assert.NotNull(service); 70Assert.NotNull(service); 75Assert.NotNull(service); 80Assert.NotNull(service);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (15)
NewtonsoftJsonInputFormatterTest.cs (1)
467Assert.NotNull(registerForDispose);
NewtonsoftJsonOutputFormatterTest.cs (9)
32Assert.NotNull(jsonFormatter.SerializerSettings); 141Assert.NotNull(body); 173Assert.NotNull(body); 216Assert.NotNull(body); 268Assert.NotNull(body); 304Assert.NotNull(body); 339Assert.NotNull(body); 397Assert.NotNull(outputFormatterContext.HttpContext.Response.ContentLength); 426Assert.NotNull(body);
NewtonsoftJsonValidationMetadataProviderTest.cs (3)
27Assert.NotNull(context.ValidationMetadata.ValidationModelName); 45Assert.NotNull(context.ValidationMetadata.ValidationModelName); 64Assert.NotNull(context.ValidationMetadata.ValidationModelName);
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
155Assert.NotNull(body);
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (1)
20Assert.NotNull(tempDataDictionary);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
RuntimeViewCompilerTest.cs (2)
793Assert.NotNull(result); 813Assert.NotNull(result);
Microsoft.AspNetCore.Mvc.Razor.Test (63)
Compilation\RazorPagePropertyActivatorTest.cs (8)
27Assert.NotNull(viewDataDictionary); 46Assert.NotNull(viewDataDictionary); 73Assert.NotNull(viewDataDictionary); 102Assert.NotNull(viewDataDictionary); 131Assert.NotNull(viewDataDictionary); 160Assert.NotNull(viewDataDictionary); 189Assert.NotNull(viewDataDictionary); 213Assert.NotNull(viewDataDictionary);
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
36Assert.NotNull(helper);
RazorPageActivatorTest.cs (7)
71Assert.NotNull(instance.Html); 76Assert.NotNull(service); 77Assert.NotNull(keyedService); 103Assert.NotNull(viewContext.ViewData); 143Assert.NotNull(instance.Html); 148Assert.NotNull(service); 149Assert.NotNull(keyedService);
RazorPageCreateModelExpressionTest.cs (21)
38Assert.NotNull(modelExpression); 63Assert.NotNull(modelExpression); 118Assert.NotNull(modelExpression); 120Assert.NotNull(modelExpression.ModelExplorer); 122Assert.NotNull(modelExpression.Metadata); 140Assert.NotNull(result); 141Assert.NotNull(result.Metadata); 158Assert.NotNull(result); 159Assert.NotNull(result.Metadata); 176Assert.NotNull(result); 177Assert.NotNull(result.Metadata); 194Assert.NotNull(result); 195Assert.NotNull(result.Metadata); 213Assert.NotNull(result); 214Assert.NotNull(result.Metadata); 231Assert.NotNull(result); 232Assert.NotNull(result.Metadata); 249Assert.NotNull(result); 250Assert.NotNull(result.Metadata); 267Assert.NotNull(result); 268Assert.NotNull(result.Metadata);
RazorPageCreateTagHelperTest.cs (3)
32Assert.NotNull(tagHelper); 45Assert.NotNull(tagHelper.ActivatedService); 58Assert.NotNull(tagHelper.ViewContext);
RazorPageTest.cs (2)
168Assert.NotNull(originalEncoder); 224Assert.NotNull(originalWriter);
RazorViewEngineTest.cs (12)
554Assert.NotNull(result1); 568Assert.NotNull(result2); 618Assert.NotNull(result1); 633Assert.NotNull(result2); 677Assert.NotNull(c.ActionContext); 687Assert.NotNull(c.ActionContext); 745Assert.NotNull(c.ActionContext); 755Assert.NotNull(c.ActionContext); 1161Assert.NotNull(c.ActionContext); 1171Assert.NotNull(c.ActionContext); 1220Assert.NotNull(c.ActionContext); 1230Assert.NotNull(c.ActionContext);
RazorViewTest.cs (8)
134Assert.NotNull(adapter.BeforeViewPage?.Page); 135Assert.NotNull(adapter.BeforeViewPage?.ViewContext); 136Assert.NotNull(adapter.BeforeViewPage?.ActionDescriptor); 137Assert.NotNull(adapter.BeforeViewPage?.HttpContext); 138Assert.NotNull(adapter.AfterViewPage?.Page); 139Assert.NotNull(adapter.AfterViewPage?.ViewContext); 140Assert.NotNull(adapter.AfterViewPage?.ActionDescriptor); 141Assert.NotNull(adapter.AfterViewPage?.HttpContext);
TagHelpers\TagHelperComponentTagHelperTest.cs (1)
307Assert.NotNull(testTagHelperComponentTagHelper.PropertyActivator);
Microsoft.AspNetCore.Mvc.RazorPages.Test (123)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (18)
144Assert.NotNull(context.PageApplicationModel); 164Assert.NotNull(property.BindingInfo); 199Assert.NotNull(context.PageApplicationModel); 206Assert.NotNull(property.BindingInfo); 242Assert.NotNull(context.PageApplicationModel); 250Assert.NotNull(property.BindingInfo); 257Assert.NotNull(property.BindingInfo); 296Assert.NotNull(context.PageApplicationModel); 339Assert.NotNull(context.PageApplicationModel); 354Assert.NotNull(property.BindingInfo); 362Assert.NotNull(property.BindingInfo); 381Assert.NotNull(context.PageApplicationModel); 387Assert.NotNull(property.BindingInfo); 392Assert.NotNull(property.BindingInfo); 428Assert.NotNull(context.PageApplicationModel); 912Assert.NotNull(p.ParameterInfo); 918Assert.NotNull(p.ParameterInfo); 987Assert.NotNull(p.BindingInfo.RequestPredicate);
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (8)
34Assert.NotNull(metadata); 55Assert.NotNull(metadata); 76Assert.NotNull(metadata); 98Assert.NotNull(metadata); 121Assert.NotNull(metadata); 144Assert.NotNull(metadata); 170Assert.NotNull(metadata); 196Assert.NotNull(metadata);
Infrastructure\DefaultPageActivatorProviderTest.cs (5)
47Assert.NotNull(instance); 120Assert.NotNull(disposer); 141Assert.NotNull(disposer); 162Assert.NotNull(disposer); 183Assert.NotNull(disposer);
Infrastructure\DefaultPageFactoryProviderTest.cs (8)
100Assert.NotNull(testPage.ViewData); 155Assert.NotNull(testPage.ViewData); 182Assert.NotNull(testPage.ViewData); 207Assert.NotNull(testPage.ViewData); 241Assert.NotNull(testPage.ViewData); 280Assert.NotNull(testPage.DiagnosticSourceWithInject); 283Assert.NotNull(testPage.LoggerWithInject); 286Assert.NotNull(testPage.ModelExpressionProviderWithInject);
Infrastructure\DefaultPageLoaderTest.cs (1)
151Assert.NotNull(result.Endpoint);
Infrastructure\DefaultPageModelActivatorProviderTest.cs (4)
57Assert.NotNull(simpleModel); 166Assert.NotNull(disposer); 187Assert.NotNull(disposer); 208Assert.NotNull(disposer);
Infrastructure\DefaultPageModelFactoryProviderTest.cs (1)
58Assert.NotNull(model);
Infrastructure\ExecutorFactoryTest.cs (7)
26Assert.NotNull(executor); 46Assert.NotNull(executor); 67Assert.NotNull(executor); 90Assert.NotNull(executor); 113Assert.NotNull(executor); 135Assert.NotNull(executor); 156Assert.NotNull(executor);
Infrastructure\PageActionEndpointDataSourceTest.cs (2)
160Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>()); 167Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
Infrastructure\PageActionInvokerProviderTest.cs (12)
64Assert.NotNull(context.Result); 72Assert.NotNull(entry.ViewDataFactory); 126Assert.NotNull(context.Result); 137Assert.NotNull(entry.ViewDataFactory); 145Assert.NotNull(Assert.IsType<ViewDataDictionary<TestPageModel>>(pageContext.ViewData)); 192Assert.NotNull(context.Result); 224Assert.NotNull(context.Result); 238Assert.NotNull(context.Result); 270Assert.NotNull(context.Result); 304Assert.NotNull(context.Result); 341Assert.NotNull(context1.Result); 357Assert.NotNull(context2.Result);
Infrastructure\PageActionInvokerTest.cs (31)
48Assert.NotNull(listener.BeforeAction?.ActionDescriptor); 49Assert.NotNull(listener.BeforeAction?.HttpContext); 52Assert.NotNull(routeValues); 76Assert.NotNull(listener.AfterAction?.ActionDescriptor); 77Assert.NotNull(listener.AfterAction?.HttpContext); 110Assert.NotNull(pageContext); 144Assert.NotNull(pageContext); 580Assert.NotNull(pageResult.Page); 581Assert.NotNull(pageResult.ViewData); 582Assert.NotNull(pageResult.Page.ViewContext); 614Assert.NotNull(pageResult.Page); 615Assert.NotNull(pageResult.ViewData); 616Assert.NotNull(pageResult.Page.ViewContext); 649Assert.NotNull(pageResult.Page); 650Assert.NotNull(pageResult.ViewData); 651Assert.NotNull(pageResult.Page.ViewContext); 683Assert.NotNull(pageResult.Page); 684Assert.NotNull(pageResult.ViewData); 685Assert.NotNull(pageResult.Page.ViewContext); 718Assert.NotNull(pageResult.Page); 719Assert.NotNull(pageResult.ViewData); 720Assert.NotNull(pageResult.Page.ViewContext); 752Assert.NotNull(pageResult.Page); 753Assert.NotNull(pageResult.ViewData); 754Assert.NotNull(pageResult.Page.ViewContext); 788Assert.NotNull(pageResult.Page); 789Assert.NotNull(pageResult.ViewData); 790Assert.NotNull(pageResult.Page.ViewContext); 823Assert.NotNull(pageResult.Page); 824Assert.NotNull(pageResult.ViewData); 825Assert.NotNull(pageResult.Page.ViewContext);
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (1)
88Assert.NotNull(simpleModel2);
PageModelTest.cs (13)
28Assert.NotNull(pageModel.PageContext); 1382Assert.NotNull(result); 1399Assert.NotNull(result); 1416Assert.NotNull(result); 1433Assert.NotNull(result); 1460Assert.NotNull(result); 1486Assert.NotNull(result); 1636Assert.NotNull(contentResult.ContentType); 1954Assert.NotNull(result); 1979Assert.NotNull(result); 2001Assert.NotNull(result); 2023Assert.NotNull(result); 2039Assert.NotNull(result);
PageTest.cs (12)
1372Assert.NotNull(result); 1389Assert.NotNull(result); 1406Assert.NotNull(result); 1423Assert.NotNull(result); 1450Assert.NotNull(result); 1476Assert.NotNull(result); 1626Assert.NotNull(contentResult.ContentType); 1728Assert.NotNull(result); 1754Assert.NotNull(result); 1776Assert.NotNull(result); 1798Assert.NotNull(result); 1822Assert.NotNull(result);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
VirtualPathDataTests.cs (3)
23Assert.NotNull(pathData.DataTokens); 42Assert.NotNull(pathData.DataTokens); 60Assert.NotNull(pathData.DataTokens);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
CacheTagHelperTest.cs (2)
1035Assert.NotNull(Entry); 1037Assert.NotNull(value);
InputTagHelperTest.cs (1)
105Assert.NotNull(output.PostElement);
LinkTagHelperTest.cs (3)
317Assert.NotNull(output.TagName); 540Assert.NotNull(output.TagName); 559Assert.NotNull(output.TagName);
ScriptTagHelperTest.cs (2)
293Assert.NotNull(output.TagName); 468Assert.NotNull(output.TagName);
Microsoft.AspNetCore.Mvc.Test (3)
MvcServiceCollectionExtensionsTest.cs (3)
312Assert.NotNull(descriptor.ImplementationInstance); 340Assert.NotNull(descriptor.ImplementationInstance); 366Assert.NotNull(descriptor.ImplementationInstance);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (321)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (8)
42Assert.NotNull(metadata); 72Assert.NotNull(metadata); 103Assert.NotNull(metadata); 134Assert.NotNull(metadata); 166Assert.NotNull(metadata); 198Assert.NotNull(metadata); 233Assert.NotNull(metadata); 268Assert.NotNull(metadata);
CachedExpressionCompilerTest.cs (45)
21Assert.NotNull(func); 38Assert.NotNull(func1); 54Assert.NotNull(func); 70Assert.NotNull(func); 86Assert.NotNull(func); 150Assert.NotNull(func); 166Assert.NotNull(func); 183Assert.NotNull(func1); 200Assert.NotNull(func); 217Assert.NotNull(func1); 233Assert.NotNull(func); 249Assert.NotNull(func); 264Assert.NotNull(func); 280Assert.NotNull(func); 297Assert.NotNull(func1); 312Assert.NotNull(func); 328Assert.NotNull(func); 344Assert.NotNull(func); 360Assert.NotNull(func); 376Assert.NotNull(func); 392Assert.NotNull(func); 408Assert.NotNull(func); 424Assert.NotNull(func); 440Assert.NotNull(func); 457Assert.NotNull(func); 473Assert.NotNull(func); 490Assert.NotNull(func); 506Assert.NotNull(func); 523Assert.NotNull(func); 540Assert.NotNull(func1); 556Assert.NotNull(func1); 582Assert.NotNull(func); 605Assert.NotNull(func); 626Assert.NotNull(func); 653Assert.NotNull(func); 676Assert.NotNull(func); 692Assert.NotNull(func); 708Assert.NotNull(func); 728Assert.NotNull(func); 748Assert.NotNull(func); 768Assert.NotNull(func); 784Assert.NotNull(func); 800Assert.NotNull(func); 831Assert.NotNull(func); 848Assert.NotNull(func);
ControllerTest.cs (2)
418Assert.NotNull(controller.ViewData); 424Assert.NotNull(controller.ViewData.ModelMetadata);
ControllerUnitTestabilityTests.cs (37)
27Assert.NotNull(result); 31Assert.NotNull(viewResult.ViewData); 49Assert.NotNull(result); 53Assert.NotNull(viewResult.ViewData); 73Assert.NotNull(result); 94Assert.NotNull(result); 114Assert.NotNull(result); 135Assert.NotNull(result); 168Assert.NotNull(result); 198Assert.NotNull(result); 201Assert.NotNull(jsonResult.Value); 212Assert.NotNull(result); 230Assert.NotNull(result); 233Assert.NotNull(jsonResult.Value); 248Assert.NotNull(result); 264Assert.NotNull(result); 281Assert.NotNull(result); 298Assert.NotNull(result); 311Assert.NotNull(result); 331Assert.NotNull(result); 346Assert.NotNull(result); 367Assert.NotNull(result); 382Assert.NotNull(result); 404Assert.NotNull(result); 420Assert.NotNull(result); 443Assert.NotNull(result); 459Assert.NotNull(result); 480Assert.NotNull(result); 494Assert.NotNull(result); 514Assert.NotNull(result); 529Assert.NotNull(result); 548Assert.NotNull(result); 567Assert.NotNull(controller.ControllerContext); 568Assert.NotNull(controller.ControllerContext.ModelState); 646Assert.NotNull(result); 661Assert.NotNull(result); 676Assert.NotNull(result);
CookieTempDataProviderTest.cs (7)
63Assert.NotNull(tempDataDictionary); 135Assert.NotNull(cookieInfo); 171Assert.NotNull(cookieInfo); 206Assert.NotNull(cookieInfo); 255Assert.NotNull(cookieInfo); 286Assert.NotNull(cookie); 289Assert.NotNull(cookie.Expires);
DefaultHtmlGeneratorTest.cs (2)
600Assert.NotNull(result); 630Assert.NotNull(result);
ExpressionMetadataProviderTest.cs (16)
28Assert.NotNull(explorer); 29Assert.NotNull(explorer.Metadata); 46Assert.NotNull(explorer); 47Assert.NotNull(explorer.Metadata); 64Assert.NotNull(explorer); 65Assert.NotNull(explorer.Metadata); 86Assert.NotNull(explorer); 87Assert.NotNull(explorer.Metadata); 130Assert.NotNull(explorer); 131Assert.NotNull(explorer.Metadata); 171Assert.NotNull(explorer); 172Assert.NotNull(explorer.Metadata); 193Assert.NotNull(explorer); 194Assert.NotNull(explorer.Metadata); 215Assert.NotNull(explorer); 216Assert.NotNull(explorer.Metadata);
Infrastructure\TempDataSerializerTestBase.cs (1)
20Assert.NotNull(tempDataDictionary);
PartialViewResultExecutorTest.cs (7)
230Assert.NotNull(listener.ViewFound); 231Assert.NotNull(listener.ViewFound.ActionContext); 232Assert.NotNull(listener.ViewFound.Result); 233Assert.NotNull(listener.ViewFound.View); 273Assert.NotNull(listener.ViewNotFound); 274Assert.NotNull(listener.ViewNotFound.ActionContext); 275Assert.NotNull(listener.ViewNotFound.Result);
Rendering\HtmlHelperFormExtensionsTest.cs (81)
296Assert.NotNull(htmlHelper.ViewContext); 299Assert.NotNull(builder); 305Assert.NotNull(mvcForm); 333Assert.NotNull(htmlHelper.ViewContext); 336Assert.NotNull(builder); 342Assert.NotNull(mvcForm); 366Assert.NotNull(htmlHelper.ViewContext); 369Assert.NotNull(builder); 375Assert.NotNull(mvcForm); 408Assert.NotNull(htmlHelper.ViewContext); 411Assert.NotNull(builder); 417Assert.NotNull(mvcForm); 452Assert.NotNull(htmlHelper.ViewContext); 455Assert.NotNull(builder); 461Assert.NotNull(mvcForm); 492Assert.NotNull(htmlHelper.ViewContext); 495Assert.NotNull(builder); 501Assert.NotNull(mvcForm); 528Assert.NotNull(htmlHelper.ViewContext); 531Assert.NotNull(builder); 537Assert.NotNull(mvcForm); 566Assert.NotNull(htmlHelper.ViewContext); 569Assert.NotNull(builder); 575Assert.NotNull(mvcForm); 606Assert.NotNull(htmlHelper.ViewContext); 609Assert.NotNull(builder); 615Assert.NotNull(mvcForm); 647Assert.NotNull(htmlHelper.ViewContext); 650Assert.NotNull(builder); 656Assert.NotNull(mvcForm); 692Assert.NotNull(htmlHelper.ViewContext); 695Assert.NotNull(builder); 701Assert.NotNull(mvcForm); 738Assert.NotNull(htmlHelper.ViewContext); 741Assert.NotNull(builder); 747Assert.NotNull(mvcForm); 784Assert.NotNull(htmlHelper.ViewContext); 787Assert.NotNull(builder); 793Assert.NotNull(mvcForm); 826Assert.NotNull(htmlHelper.ViewContext); 829Assert.NotNull(builder); 841Assert.NotNull(mvcForm); 870Assert.NotNull(htmlHelper.ViewContext); 873Assert.NotNull(builder); 885Assert.NotNull(mvcForm); 913Assert.NotNull(htmlHelper.ViewContext); 916Assert.NotNull(builder); 922Assert.NotNull(mvcForm); 951Assert.NotNull(htmlHelper.ViewContext); 954Assert.NotNull(builder); 960Assert.NotNull(mvcForm); 985Assert.NotNull(htmlHelper.ViewContext); 988Assert.NotNull(builder); 994Assert.NotNull(mvcForm); 1022Assert.NotNull(htmlHelper.ViewContext); 1025Assert.NotNull(builder); 1031Assert.NotNull(mvcForm); 1060Assert.NotNull(htmlHelper.ViewContext); 1063Assert.NotNull(builder); 1069Assert.NotNull(mvcForm); 1094Assert.NotNull(htmlHelper.ViewContext); 1097Assert.NotNull(builder); 1103Assert.NotNull(mvcForm); 1133Assert.NotNull(htmlHelper.ViewContext); 1136Assert.NotNull(builder); 1142Assert.NotNull(mvcForm); 1176Assert.NotNull(htmlHelper.ViewContext); 1179Assert.NotNull(builder); 1185Assert.NotNull(mvcForm); 1220Assert.NotNull(htmlHelper.ViewContext); 1223Assert.NotNull(builder); 1229Assert.NotNull(mvcForm); 1264Assert.NotNull(htmlHelper.ViewContext); 1267Assert.NotNull(builder); 1273Assert.NotNull(mvcForm); 1304Assert.NotNull(htmlHelper.ViewContext); 1307Assert.NotNull(builder); 1318Assert.NotNull(mvcForm); 1345Assert.NotNull(htmlHelper.ViewContext); 1348Assert.NotNull(builder); 1359Assert.NotNull(mvcForm);
Rendering\HtmlHelperFormTest.cs (30)
130Assert.NotNull(htmlHelper.ViewContext); 133Assert.NotNull(builder); 134Assert.NotNull(htmlHelper.ViewContext.HttpContext); 136Assert.NotNull(request); 153Assert.NotNull(mvcForm); 180Assert.NotNull(htmlHelper.ViewContext); 183Assert.NotNull(builder); 184Assert.NotNull(htmlHelper.ViewContext.HttpContext); 186Assert.NotNull(request); 203Assert.NotNull(mvcForm); 242Assert.NotNull(htmlHelper.ViewContext); 245Assert.NotNull(builder); 257Assert.NotNull(mvcForm); 292Assert.NotNull(htmlHelper.ViewContext); 295Assert.NotNull(builder); 306Assert.NotNull(mvcForm); 320Assert.NotNull(htmlHelper.ViewContext); 323Assert.NotNull(builder); 344Assert.NotNull(writer); 391Assert.NotNull(writer); 429Assert.NotNull(writer); 468Assert.NotNull(writer); 506Assert.NotNull(writer); 546Assert.NotNull(writer); 585Assert.NotNull(writer); 625Assert.NotNull(writer); 662Assert.NotNull(writer); 705Assert.NotNull(writer); 747Assert.NotNull(writer); 791Assert.NotNull(writer);
Rendering\HtmlHelperSelectTest.cs (1)
1555Assert.NotNull(actual);
Rendering\TagBuilderTest.cs (1)
194Assert.NotNull(innerHtml);
ViewComponentResultTest.cs (7)
292Assert.NotNull(adapter.BeforeViewComponent?.ActionDescriptor); 293Assert.NotNull(adapter.BeforeViewComponent?.ViewComponentContext); 294Assert.NotNull(adapter.BeforeViewComponent?.ViewComponent); 295Assert.NotNull(adapter.AfterViewComponent?.ActionDescriptor); 296Assert.NotNull(adapter.AfterViewComponent?.ViewComponentContext); 297Assert.NotNull(adapter.AfterViewComponent?.ViewComponentResult); 298Assert.NotNull(adapter.AfterViewComponent?.ViewComponent);
ViewComponents\DefaultViewComponentActivatorTests.cs (2)
34Assert.NotNull(instance); 58Assert.NotNull(instance);
ViewComponents\ViewViewComponentResultTest.cs (6)
133Assert.NotNull(adapter.ViewComponentBeforeViewExecute?.ActionDescriptor); 134Assert.NotNull(adapter.ViewComponentBeforeViewExecute?.ViewComponentContext); 135Assert.NotNull(adapter.ViewComponentBeforeViewExecute?.View); 136Assert.NotNull(adapter.ViewComponentAfterViewExecute?.ActionDescriptor); 137Assert.NotNull(adapter.ViewComponentAfterViewExecute?.ViewComponentContext); 138Assert.NotNull(adapter.ViewComponentAfterViewExecute?.View);
ViewComponentTests.cs (4)
225Assert.NotNull(viewComponent.ViewContext); 226Assert.NotNull(viewComponent.ViewContext.ViewData); 231Assert.NotNull(viewComponent.ViewData); 252Assert.NotNull(viewComponent.ViewContext.TempData);
ViewDataDictionaryOfTModelTest.cs (28)
23Assert.NotNull(viewData.TemplateInfo); 25Assert.NotNull(viewData.ModelMetadata); 47Assert.NotNull(viewData1.ModelState); 48Assert.NotNull(viewData1.TemplateInfo); 52Assert.NotNull(viewData1.ModelMetadata); 59Assert.NotNull(viewData2.ModelState); 60Assert.NotNull(viewData2.TemplateInfo); 64Assert.NotNull(viewData2.ModelMetadata); 86Assert.NotNull(viewData1.ModelState); 87Assert.NotNull(viewData1.TemplateInfo); 91Assert.NotNull(viewData1.ModelMetadata); 98Assert.NotNull(viewData2.ModelState); 99Assert.NotNull(viewData2.TemplateInfo); 103Assert.NotNull(viewData2.ModelMetadata); 127Assert.NotNull(viewData.ModelMetadata); 148Assert.NotNull(viewData.ModelMetadata); 166Assert.NotNull(viewData.ModelState); 167Assert.NotNull(viewData.TemplateInfo); 171Assert.NotNull(viewData.ModelMetadata); 192Assert.NotNull(viewData1.ModelMetadata); 193Assert.NotNull(viewData1.ModelExplorer); 197Assert.NotNull(viewData2.ModelMetadata); 198Assert.NotNull(viewData2.ModelExplorer); 254Assert.NotNull(viewData.ModelExplorer); 256Assert.NotNull(viewData.ModelMetadata); 277Assert.NotNull(viewData.ModelExplorer); 296Assert.NotNull(viewData.ModelExplorer); 318Assert.NotNull(viewData.ModelExplorer);
ViewDataDictionaryTest.cs (20)
22Assert.NotNull(viewData.ModelState); 23Assert.NotNull(viewData.TemplateInfo); 25Assert.NotNull(viewData.ModelMetadata); 41Assert.NotNull(viewData.TemplateInfo); 43Assert.NotNull(viewData.ModelMetadata); 62Assert.NotNull(viewData.ModelMetadata); 82Assert.NotNull(viewData.ModelMetadata); 106Assert.NotNull(viewData.ModelMetadata); 201Assert.NotNull(viewData.ModelState); 202Assert.NotNull(viewData.TemplateInfo); 206Assert.NotNull(viewData.ModelMetadata); 334Assert.NotNull(viewData.ModelMetadata); 335Assert.NotNull(viewData.ModelExplorer); 360Assert.NotNull(viewData.ModelExplorer); 361Assert.NotNull(viewData.ModelMetadata); 385Assert.NotNull(viewData.ModelMetadata); 386Assert.NotNull(viewData.ModelExplorer); 426Assert.NotNull(viewData.ModelMetadata); 427Assert.NotNull(viewData.ModelExplorer); 453Assert.NotNull(viewData.ModelMetadata);
ViewDataOfTTest.cs (5)
60Assert.NotNull(viewData.Keys); 64Assert.NotNull(viewData.ModelMetadata); 65Assert.NotNull(viewData.ModelState); 67Assert.NotNull(viewData.TemplateInfo); 72Assert.NotNull(viewData.Values);
ViewExecutorTest.cs (4)
288Assert.NotNull(adapter.BeforeView?.View); 289Assert.NotNull(adapter.BeforeView?.ViewContext); 290Assert.NotNull(adapter.AfterView?.View); 291Assert.NotNull(adapter.AfterView?.ViewContext);
ViewResultExecutorTest.cs (7)
226Assert.NotNull(listener.ViewFound); 227Assert.NotNull(listener.ViewFound.ActionContext); 228Assert.NotNull(listener.ViewFound.Result); 229Assert.NotNull(listener.ViewFound.View); 268Assert.NotNull(listener.ViewNotFound); 269Assert.NotNull(listener.ViewNotFound.ActionContext); 270Assert.NotNull(listener.ViewNotFound.Result);
Microsoft.AspNetCore.OpenApi.Tests (95)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (7)
35Assert.NotNull(operation); 58Assert.NotNull(operation); 85Assert.NotNull(operation); 115e => Assert.NotNull(e.Metadata.GetMetadata<OpenApiOperation>()), 116e => Assert.NotNull(e.Metadata.GetMetadata<OpenApiOperation>())); 140Assert.NotNull(operation); 177Assert.NotNull(operation);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (58)
28Assert.NotNull(operation.RequestBody); 29Assert.NotNull(operation.RequestBody.Content); 61Assert.NotNull(operation.RequestBody); 63Assert.NotNull(operation.RequestBody.Content); 67Assert.NotNull(content.Value.Schema.Properties); 99Assert.NotNull(operation.RequestBody); 128Assert.NotNull(operation.RequestBody); 130Assert.NotNull(operation.RequestBody.Content); 134Assert.NotNull(content.Value.Schema.Properties); 167Assert.NotNull(operation.RequestBody); 187Assert.NotNull(operation.RequestBody); 188Assert.NotNull(operation.RequestBody.Content); 192Assert.NotNull(content.Value.Schema.AllOf); 196Assert.NotNull(allOfItem.Properties); 204Assert.NotNull(allOfItem.Properties); 227Assert.NotNull(operation.RequestBody); 228Assert.NotNull(operation.RequestBody.Content); 232Assert.NotNull(content.Value.Schema.Properties); 254Assert.NotNull(operation.RequestBody); 255Assert.NotNull(operation.RequestBody.Content); 259Assert.NotNull(content.Value.Schema.Properties); 281Assert.NotNull(operation.RequestBody); 283Assert.NotNull(operation.RequestBody.Content); 313Assert.NotNull(operation.RequestBody); 334Assert.NotNull(operation.RequestBody); 336Assert.NotNull(operation.RequestBody.Content); 356Assert.NotNull(operation.RequestBody); 357Assert.NotNull(operation.RequestBody.Content); 377Assert.NotNull(operation.RequestBody); 378Assert.NotNull(operation.RequestBody.Content); 417Assert.NotNull(operation.RequestBody); 418Assert.NotNull(operation.RequestBody.Content); 426Assert.NotNull(item.Schema); 428Assert.NotNull(item.Schema.Properties); 466Assert.NotNull(operation.RequestBody); 467Assert.NotNull(operation.RequestBody.Content); 474Assert.NotNull(item.Schema); 476Assert.NotNull(item.Schema.Properties); 521Assert.NotNull(operation.RequestBody); 522Assert.NotNull(operation.RequestBody.Content); 530Assert.NotNull(item.Schema); 532Assert.NotNull(item.Schema.AllOf); 587Assert.NotNull(operation.RequestBody); 588Assert.NotNull(operation.RequestBody.Content); 595Assert.NotNull(item.Schema); 597Assert.NotNull(item.Schema.AllOf); 655Assert.NotNull(operation.RequestBody); 656Assert.NotNull(operation.RequestBody.Content); 663Assert.NotNull(item.Schema); 665Assert.NotNull(item.Schema.Properties); 695Assert.NotNull(operation.RequestBody.Content); 698Assert.NotNull(item.Schema); 737Assert.NotNull(operation.RequestBody.Content); 741Assert.NotNull(item.Schema); 778Assert.NotNull(operation.RequestBody.Content); 781Assert.NotNull(item.Schema); 1029Assert.NotNull(operation.RequestBody.Content); 1032Assert.NotNull(content.Value.Schema);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Responses.cs (2)
264Assert.NotNull(defaultResponse); 281Assert.NotNull(okResponse);
Services\OpenApiGeneratorTests.cs (10)
117Assert.NotNull(request); 135Assert.NotNull(request); 211Assert.NotNull(createdResponseType); 216Assert.NotNull(badRequestResponseType); 234Assert.NotNull(createdResponseType); 239Assert.NotNull(badRequestResponseType); 794Assert.NotNull(requestFormat0); 797Assert.NotNull(requestFormat1); 807Assert.NotNull(operation0.RequestBody); 808Assert.NotNull(operation1.RequestBody);
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (4)
23Assert.NotNull(operation.RequestBody); 60Assert.NotNull(operation.RequestBody); 105Assert.NotNull(operation.RequestBody); 144Assert.NotNull(operation.RequestBody);
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (9)
29Assert.NotNull(requestBody); 32Assert.NotNull(content.Value.Schema); 76Assert.NotNull(requestBody); 79Assert.NotNull(content.Value.Schema); 237Assert.NotNull(enumerableTodo.RequestBody); 238Assert.NotNull(arrayTodo.RequestBody); 295Assert.NotNull(operation.RequestBody); 335Assert.NotNull(operation.RequestBody); 383Assert.NotNull(operation.RequestBody);
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (4)
111Assert.NotNull(response); 114Assert.NotNull(content.Value.Schema); 452Assert.NotNull(schema.Items); 530Assert.NotNull(property.Value.Items);
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
256Assert.NotNull(requestBodySchema.GetEffective(document).Items.Reference.Id);
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheEntryFormatterTests.cs (1)
75Assert.NotNull(payload);
OutputCacheKeyProviderTests.cs (1)
81Assert.NotNull(context.CacheVaryByRules);
OutputCacheMiddlewareTests.cs (1)
584Assert.NotNull(context.CachedResponse);
OutputCacheTests.cs (1)
1007Assert.NotNull(len);
Microsoft.AspNetCore.Owin.Tests (13)
OwinEnvironmentTests.cs (7)
42Assert.NotNull(requestHeaders); 52Assert.NotNull(responseHeaders); 71Assert.NotNull(requestHeaders); 80Assert.NotNull(responseHeaders); 133Assert.NotNull(owinEnvironment.GetEnumerator()); 134Assert.NotNull(((IEnumerable)owinEnvironment).GetEnumerator()); 159Assert.NotNull(orderedEnvironment);
OwinExtensionTests.cs (6)
48Assert.NotNull(serviceProvider); 49Assert.NotNull(serviceProvider.GetService<FakeService>()); 50Assert.NotNull(fakeService); 116Assert.NotNull(serviceProvider); 133Assert.NotNull(next); 144Assert.NotNull(environment);
Microsoft.AspNetCore.RateLimiting.Tests (4)
RateLimiterEndpointConventionBuilderExtensionsTests.cs (4)
30Assert.NotNull(metadata); 52Assert.NotNull(metadata); 53Assert.NotNull(metadata.Policy); 74Assert.NotNull(metadata);
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (1)
225Assert.NotNull(executionContext.Items);
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
202Assert.NotNull(tagHelper.ContextProcessedWith);
Microsoft.AspNetCore.Razor.Test (37)
TagHelpers\TagHelperContextTest.cs (2)
61Assert.NotNull(context.Items); 84Assert.NotNull(context.Items);
TagHelpers\TagHelperOutputTest.cs (35)
214Assert.NotNull(tagHelperOutput.PreElement); 215Assert.NotNull(tagHelperOutput.PreContent); 216Assert.NotNull(tagHelperOutput.Content); 217Assert.NotNull(tagHelperOutput.PostContent); 218Assert.NotNull(tagHelperOutput.PostElement); 232Assert.NotNull(tagHelperOutput.PreElement); 233Assert.NotNull(tagHelperOutput.PreContent); 234Assert.NotNull(tagHelperOutput.Content); 235Assert.NotNull(tagHelperOutput.PostContent); 236Assert.NotNull(tagHelperOutput.PostElement); 273Assert.NotNull(tagHelperOutput.PreElement); 274Assert.NotNull(tagHelperOutput.PreContent); 275Assert.NotNull(tagHelperOutput.Content); 276Assert.NotNull(tagHelperOutput.PostContent); 277Assert.NotNull(tagHelperOutput.PostElement); 291Assert.NotNull(tagHelperOutput.PreElement); 292Assert.NotNull(tagHelperOutput.PreContent); 293Assert.NotNull(tagHelperOutput.Content); 294Assert.NotNull(tagHelperOutput.PostContent); 295Assert.NotNull(tagHelperOutput.PostElement); 309Assert.NotNull(tagHelperOutput.PreElement); 310Assert.NotNull(tagHelperOutput.PreContent); 311Assert.NotNull(tagHelperOutput.Content); 312Assert.NotNull(tagHelperOutput.PostContent); 313Assert.NotNull(tagHelperOutput.PostElement); 333Assert.NotNull(tagHelperOutput.PreElement); 335Assert.NotNull(tagHelperOutput.PreContent); 337Assert.NotNull(tagHelperOutput.Content); 339Assert.NotNull(tagHelperOutput.PostContent); 341Assert.NotNull(tagHelperOutput.PostElement); 365Assert.NotNull(tagHelperOutput.PreElement); 367Assert.NotNull(tagHelperOutput.PreContent); 369Assert.NotNull(tagHelperOutput.Content); 371Assert.NotNull(tagHelperOutput.PostContent); 373Assert.NotNull(tagHelperOutput.PostElement);
Microsoft.AspNetCore.RequestDecompression.Tests (5)
DefaultRequestDecompressionProviderTests.cs (1)
40Assert.NotNull(matchingProvider);
RequestDecompressionMiddlewareTests.cs (3)
398Assert.NotNull(exception); 501Assert.NotNull(exception); 585Assert.NotNull(exception);
SizeLimitedStreamTests.cs (1)
98Assert.NotNull(exception);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingMiddlewareTests.cs (1)
665Assert.NotNull(context.CachedResponse);
Microsoft.AspNetCore.ResponseCompression.Tests (3)
ResponseCompressionMiddlewareTest.cs (3)
1051Assert.NotNull(sendFile); 1101Assert.NotNull(sendFile); 1325Assert.NotNull(response.Content.Headers.GetValues(HeaderNames.ContentMD5));
Microsoft.AspNetCore.Rewrite.Tests (1)
ApacheModRewrite\CookieActionFactoryTest.cs (1)
63Assert.NotNull(action.Value);
Microsoft.AspNetCore.Routing.FunctionalTests (18)
Benchmarks\EndpointRoutingBenchmarkTest.cs (2)
50Assert.NotNull(response.Content); 51Assert.NotNull(response.Content.Headers.ContentType);
Benchmarks\RouterBenchmarkTest.cs (2)
51Assert.NotNull(response.Content); 52Assert.NotNull(response.Content.Headers.ContentType);
EndpointRoutingSampleTest.cs (12)
57Assert.NotNull(response.Content); 58Assert.NotNull(response.Content.Headers.ContentType); 74Assert.NotNull(response.Content); 75Assert.NotNull(response.Content.Headers.ContentType); 93Assert.NotNull(response.Content); 94Assert.NotNull(response.Content.Headers.ContentType); 111Assert.NotNull(response.Content); 137Assert.NotNull(response.Content); 153Assert.NotNull(response.Content); 180Assert.NotNull(response.Content); 198Assert.NotNull(response.Content); 211Assert.NotNull(response.Content);
MinimalFormTests.cs (1)
244Assert.NotNull(exception);
RouteHandlerTest.cs (1)
57Assert.NotNull(echoedTodo);
Microsoft.AspNetCore.Routing.Tests (195)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
105Assert.NotNull(feature);
Builder\GroupTest.cs (4)
38Assert.NotNull(methodMetadata); 70Assert.NotNull(methodMetadata); 104Assert.NotNull(methodMetadata); 226Assert.NotNull(conventionBuiltEndpoint);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (4)
101Assert.NotNull(endpoint.RequestDelegate); 137Assert.NotNull(endpoint.RequestDelegate); 165Assert.NotNull(endpoint.RequestDelegate); 216Assert.NotNull(endpoint.RequestDelegate);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (24)
103Assert.NotNull(methodMetadata); 123Assert.NotNull(methodMetadata); 149Assert.NotNull(methodMetadata); 187Assert.NotNull(methodMetadata); 271Assert.NotNull(methodMetadata); 291Assert.NotNull(methodMetadata); 311Assert.NotNull(methodMetadata); 335Assert.NotNull(methodMetadata); 355Assert.NotNull(methodMetadata); 375Assert.NotNull(methodMetadata); 399Assert.NotNull(methodMetadata); 419Assert.NotNull(methodMetadata); 439Assert.NotNull(methodMetadata); 473Assert.NotNull(methodMetadata); 494Assert.NotNull(methodMetadata); 524Assert.NotNull(methodMetadata); 565Assert.NotNull(methodMetadata); 669Assert.NotNull(methodMetadata); 690Assert.NotNull(endpointMetadata); 707Assert.NotNull(methodMetadata); 727Assert.NotNull(methodMetadata); 875Assert.NotNull(routeHandlerContext.MethodInfo); 876Assert.NotNull(routeHandlerContext.MethodInfo.DeclaringType); 877Assert.NotNull(routeHandlerContext.ApplicationServices);
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
45Assert.NotNull(metadata); 116Assert.NotNull(hosts);
CompositeEndpointDataSourceTest.cs (6)
360Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 367Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 415Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 422Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 481Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 488Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>());
DefaultParameterPolicyFactoryTest.cs (9)
228Assert.NotNull(constraint.TestService); 250Assert.NotNull(constraint.TestService1); 251Assert.NotNull(constraint.TestService2); 271Assert.NotNull(constraint.TestService1); 272Assert.NotNull(constraint.TestService2); 292Assert.NotNull(constraint.TestService); 313Assert.NotNull(constraint.TestService1); 314Assert.NotNull(constraint.TestService2); 356Assert.NotNull(constraint.TestService);
EndpointRoutingMiddlewareTest.cs (3)
54Assert.NotNull(endpoint); 106Assert.NotNull(routeData); 129Assert.NotNull(routeData);
Matching\AcceptsMatcherPolicyTest.cs (1)
536Assert.NotNull(httpContext.GetEndpoint());
Matching\CandidateSetTest.cs (1)
362Assert.NotNull(state.Values);
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
207Assert.NotNull(httpContext.GetEndpoint());
Matching\DataSourceDependentMatcherTest.cs (1)
26Assert.NotNull(lifetime.Cache);
Matching\DfaMatcherBuilderTest.cs (14)
475Assert.NotNull(root.Parameters); 522Assert.NotNull(root.Parameters); 567Assert.NotNull(root.Parameters); 630Assert.NotNull(root.Parameters); 690Assert.NotNull(root.Parameters); 735Assert.NotNull(root.Parameters); 795Assert.NotNull(root.Parameters); 840Assert.NotNull(root.Parameters); 900Assert.NotNull(root.Parameters); 963Assert.NotNull(root.Parameters); 1015Assert.NotNull(root.Parameters); 1644Assert.NotNull(root); 2164Assert.NotNull(root); 2382Assert.NotNull(root);
Matching\DfaMatcherTest.cs (1)
79Assert.NotNull(httpContext.GetEndpoint());
Patterns\InlineRouteParameterParserTest.cs (4)
959Assert.NotNull(parameterPart.Default); 998Assert.NotNull(parameterPart.Default); 1024Assert.NotNull(parameterPart.Default); 1061Assert.NotNull(parameterPart.Default);
Patterns\RoutePatternFactoryTest.cs (10)
340c => Assert.NotNull(c.ParameterPolicy)); 347c => Assert.NotNull(c.ParameterPolicy)); 641Assert.NotNull(parameterPart.ParameterPolicies); 643Assert.NotNull(parameterPart.ParameterPolicies[0]); 644Assert.NotNull(parameterPart.ParameterPolicies[1]); 645Assert.NotNull(parameterPart.ParameterPolicies[2]); 668Assert.NotNull(parameterPart.ParameterPolicies); 670Assert.NotNull(parameterPart.ParameterPolicies[0]); 671Assert.NotNull(parameterPart.ParameterPolicies[1]); 672Assert.NotNull(parameterPart.ParameterPolicies[2]);
RouteCollectionTest.cs (3)
147Assert.NotNull(pathData); 180Assert.NotNull(context.Handler); 206Assert.NotNull(context.Handler);
RouteEndpointBuilderTest.cs (2)
94Assert.NotNull(httpMethodMetadata); 135Assert.NotNull(httpMethodMetadata);
RouterMiddlewareTest.cs (2)
37Assert.NotNull(routingFeature); 38Assert.NotNull(context.Features.Get<IRouteValuesFeature>());
RouteTest.cs (28)
44Assert.NotNull(exception.InnerException); 88Assert.NotNull(routeValues); 144Assert.NotNull(routeValues); 199Assert.NotNull(context.Handler); 241Assert.NotNull(context.Handler); 283Assert.NotNull(context.Handler); 284Assert.NotNull(routeValues); 333Assert.NotNull(context.Handler); 390Assert.NotNull(context.Handler); 407Assert.NotNull(context.Handler); 422Assert.NotNull(context.Handler); 441Assert.NotNull(context.Handler); 495Assert.NotNull(context.Handler); 525Assert.NotNull(context.Handler); 543Assert.NotNull(context.Handler); 560Assert.NotNull(context.Handler); 781Assert.NotNull(pathData); 784Assert.NotNull(pathData.DataTokens); 822Assert.NotNull(pathData); 825Assert.NotNull(pathData.DataTokens); 902Assert.NotNull(pathData); 943Assert.NotNull(pathData); 977Assert.NotNull(pathData); 1423Assert.NotNull(pathData); 1447Assert.NotNull(pathData); 1471Assert.NotNull(pathData); 1495Assert.NotNull(pathData); 1622Assert.NotNull(exception.InnerException);
RouteValuesAddressSchemeTest.cs (2)
455Assert.NotNull(state.MatchesWithRequiredValues); 456Assert.NotNull(state.NamedMatches);
Template\TemplateBinderTests.cs (10)
128Assert.NotNull(result); 139Assert.NotNull(boundTemplate); 277Assert.NotNull(result); 288Assert.NotNull(boundTemplate); 1154Assert.NotNull(result); 1165Assert.NotNull(boundTemplate); 1246Assert.NotNull(result); 1252Assert.NotNull(boundTemplate); 1275Assert.NotNull(result); 1281Assert.NotNull(boundTemplate);
TemplateParserDefaultValuesTests.cs (3)
70Assert.NotNull(ex.InnerException); 95Assert.NotNull(ex.InnerException); 121Assert.NotNull(ex.InnerException);
Tree\TreeRouteBuilderTest.cs (17)
85Assert.NotNull(tree); 86Assert.NotNull(tree.MatchingTrees); 91Assert.NotNull(firstSegment.Value.Parameters); 117Assert.NotNull(tree); 118Assert.NotNull(tree.MatchingTrees); 123Assert.NotNull(firstSegment.Value.Parameters); 133Assert.NotNull(fourthSegment); 141Assert.NotNull(sixthSegment); 161Assert.NotNull(tree); 162Assert.NotNull(tree.MatchingTrees); 167Assert.NotNull(firstSegment.Value.Parameters); 193Assert.NotNull(tree); 194Assert.NotNull(tree.MatchingTrees); 199Assert.NotNull(firstSegment.Value.ConstrainedParameters); 225Assert.NotNull(tree); 226Assert.NotNull(tree.MatchingTrees); 231Assert.NotNull(firstSegment.Value.ConstrainedParameters);
Tree\TreeRouterTest.cs (42)
328Assert.NotNull(context.Handler); 445Assert.NotNull(context.Handler); 493Assert.NotNull(context.Handler); 539Assert.NotNull(context.Handler); 561Assert.NotNull(context.Handler); 584Assert.NotNull(context.Handler); 607Assert.NotNull(context.Handler); 693Assert.NotNull(context.Handler); 741Assert.NotNull(context.Handler); 818Assert.NotNull(result); 840Assert.NotNull(result); 873Assert.NotNull(result); 905Assert.NotNull(result); 940Assert.NotNull(result); 986Assert.NotNull(result); 1023Assert.NotNull(result); 1053Assert.NotNull(result); 1083Assert.NotNull(result); 1105Assert.NotNull(result); 1141Assert.NotNull(result); 1227Assert.NotNull(result); 1247Assert.NotNull(pathData); 1267Assert.NotNull(pathData); 1304Assert.NotNull(pathData); 1324Assert.NotNull(pathData); 1344Assert.NotNull(pathData); 1369Assert.NotNull(pathData); 1389Assert.NotNull(pathData); 1410Assert.NotNull(pathData); 1448Assert.NotNull(pathData); 1468Assert.NotNull(pathData); 1490Assert.NotNull(pathData); 1515Assert.NotNull(pathData); 1540Assert.NotNull(pathData); 1567Assert.NotNull(pathData); 1594Assert.NotNull(pathData); 1688Assert.NotNull(pathData); 1889Assert.NotNull(nestedValues); 1911Assert.NotNull(pathData); 1933Assert.NotNull(pathData); 1955Assert.NotNull(pathData); 1977Assert.NotNull(pathData);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (91)
AuthenticationTests.cs (36)
32Assert.NotNull(httpContext.User); 33Assert.NotNull(httpContext.User.Identity); 71Assert.NotNull(httpContext.User); 72Assert.NotNull(httpContext.User.Identity); 97Assert.NotNull(httpContext.User); 98Assert.NotNull(httpContext.User.Identity); 121Assert.NotNull(httpContext.User); 122Assert.NotNull(httpContext.User.Identity); 155Assert.NotNull(httpContext.User); 156Assert.NotNull(httpContext.User.Identity); 175Assert.NotNull(httpContext.User); 176Assert.NotNull(httpContext.User.Identity); 205Assert.NotNull(httpContext.User); 206Assert.NotNull(httpContext.User.Identity); 229Assert.NotNull(httpContext.User); 230Assert.NotNull(httpContext.User.Identity); 252Assert.NotNull(httpContext.User); 253Assert.NotNull(httpContext.User.Identity); 275Assert.NotNull(httpContext.User); 276Assert.NotNull(httpContext.User.Identity); 293Assert.NotNull(httpContext.User); 294Assert.NotNull(httpContext.User.Identity); 319Assert.NotNull(httpContext.User); 320Assert.NotNull(httpContext.User.Identity); 337Assert.NotNull(httpContext.User); 338Assert.NotNull(httpContext.User.Identity); 358Assert.NotNull(httpContext.User); 359Assert.NotNull(httpContext.User.Identity); 387Assert.NotNull(httpContext.User); 388Assert.NotNull(httpContext.User.Identity); 393Assert.NotNull(authenticateResult.Principal); 394Assert.NotNull(authenticateResult.Principal.Identity); 419Assert.NotNull(httpContext.User); 420Assert.NotNull(httpContext.User.Identity); 446Assert.NotNull(httpContext.User); 447Assert.NotNull(httpContext.User.Identity);
Http2Tests.cs (7)
663Assert.NotNull(feature); 705Assert.NotNull(feature); 752Assert.NotNull(feature); 802Assert.NotNull(feature); 854Assert.NotNull(feature); 900Assert.NotNull(feature); 949Assert.NotNull(feature);
HttpsTests.cs (9)
82Assert.NotNull(tls); 107Assert.NotNull(tls); 112Assert.NotNull(cert); 113Assert.NotNull(tls.ClientCertificate); 122Assert.NotNull(_x509Certificate2); 157Assert.NotNull(tlsFeature); 204Assert.NotNull(tlsFeature); 205Assert.NotNull(requestInfoFeature); 243Assert.NotNull(requestTimingFeature);
OpaqueUpgradeTests.cs (10)
57Assert.NotNull(opaqueFeature); 88Assert.NotNull(opaqueFeature); 114Assert.NotNull(opaqueFeature); 135Assert.NotNull(feature); 141Assert.NotNull(opaqueFeature); 174Assert.NotNull(opaqueFeature); 221Assert.NotNull(opaqueFeature); 263Assert.NotNull(opaqueFeature); 286Assert.NotNull(opaqueFeature); 313Assert.NotNull(opaqueFeature);
RequestBodyLimitTests.cs (16)
27Assert.NotNull(feature); 49Assert.NotNull(feature); 71Assert.NotNull(feature); 94Assert.NotNull(feature); 116Assert.NotNull(feature); 138Assert.NotNull(feature); 161Assert.NotNull(feature); 186Assert.NotNull(feature); 211Assert.NotNull(feature); 237Assert.NotNull(feature); 262Assert.NotNull(feature); 286Assert.NotNull(feature); 314Assert.NotNull(feature); 340Assert.NotNull(feature); 364Assert.NotNull(feature); 388Assert.NotNull(feature);
RequestTests.cs (10)
40Assert.NotNull(requestInfo.Headers); 54Assert.NotNull(connectionInfo.ConnectionId); 58Assert.NotNull(requestIdentifierFeature); 59Assert.NotNull(requestIdentifierFeature.TraceIdentifier); 121Assert.NotNull(requestIdentifierFeature); 184Assert.NotNull(requestIdentifierFeature); 231Assert.NotNull(requestIdentifierFeature); 232Assert.NotNull(requestIdentifierFeature.TraceIdentifier); 328Assert.NotNull(requestIdentifierFeature); 329Assert.NotNull(requestIdentifierFeature.TraceIdentifier);
ResponseHeaderTests.cs (3)
60Assert.NotNull(response.Headers["Date"]); 85Assert.NotNull(response.Headers["Date"]); 110Assert.NotNull(response.Headers["Date"]);
Microsoft.AspNetCore.Server.IISIntegration.Tests (3)
IISMiddlewareTests.cs (3)
410Assert.NotNull(windows); 451Assert.NotNull(auth); 455Assert.NotNull(windowsAuth);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
AddressBinderTests.cs (1)
30Assert.NotNull(endpoint);
ConnectionContextTests.cs (1)
23Assert.NotNull(ex);
ConnectionDispatcherTests.cs (1)
67Assert.NotNull(critical);
DiagnosticMemoryPoolTests.cs (1)
156Assert.NotNull(exception);
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
172Assert.NotNull(_collection.Get<IHttpMinResponseDataRateFeature>());
Http2\Http2HttpProtocolFeatureCollectionTests.cs (2)
43Assert.NotNull(upgradeFeature); 52Assert.NotNull(minRateFeature);
Http3\Http3HttpProtocolFeatureCollectionTests.cs (2)
43Assert.NotNull(upgradeFeature); 52Assert.NotNull(minRateFeature);
HttpRequestHeadersTests.cs (5)
754Assert.NotNull(prevHeaderValue); 767Assert.NotNull(nextHeaderValue); 779Assert.NotNull(nextHeaderValue); 816Assert.NotNull(nextHeaderValue); 827Assert.NotNull(nextHeaderValue);
KestrelEventSourceTests.cs (1)
23Assert.NotNull(esType);
KestrelServerLimitsTests.cs (2)
297Assert.NotNull(new KestrelServerLimits().MinRequestBodyDataRate); 305Assert.NotNull(new KestrelServerLimits().MinResponseDataRate);
ListenOptionsTests.cs (2)
45Assert.NotNull(clone.KestrelServerOptions); 46Assert.NotNull(serviceProvider);
SniOptionsSelectorTests.cs (3)
636Assert.NotNull(alpnList); 765Assert.NotNull(options.RemoteCertificateValidationCallback); 801Assert.NotNull(options.RemoteCertificateValidationCallback);
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
ConfigurationReaderTests.cs (7)
25Assert.NotNull(certificates); 38Assert.NotNull(certificates); 56Assert.NotNull(certificates); 84Assert.NotNull(certificates); 113Assert.NotNull(endpoints); 126Assert.NotNull(endpoints); 173Assert.NotNull(endpoints);
KestrelConfigurationLoaderTests.cs (10)
109Assert.NotNull(serverOptions.ConfigurationLoader); 115Assert.NotNull(serverOptions.ConfigurationLoader); 179Assert.NotNull(opt.HttpsOptions.ServerCertificate); 180Assert.NotNull(opt.HttpsOptions.ServerCertificateChain); 432Assert.NotNull(serverOptions.ConfigurationLoader.DefaultCertificate); 486Assert.NotNull(serverOptions.ConfigurationLoader.DefaultCertificate); 540Assert.NotNull(serverOptions.ConfigurationLoader.DefaultCertificate); 1072Assert.NotNull(opt.HttpsOptions.ServerCertificate); 1142Assert.NotNull(opt.HttpsOptions.ServerCertificate); 1861Assert.NotNull(serverOptions.ConfigurationLoader);
WebHostBuilderKestrelExtensionsTests.cs (2)
31Assert.NotNull(options.ApplicationServices); 47Assert.NotNull(options.ApplicationServices);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (11)
QuicConnectionContextTests.cs (2)
107Assert.NotNull(serverStream); 259Assert.NotNull(clientStream);
QuicConnectionListenerTests.cs (9)
95Assert.NotNull(serverFailureLog.Exception); 142Assert.NotNull(tlsFeature); 143Assert.NotNull(tlsFeature.ClientCertificate); 266Assert.NotNull(serverConnection); 267Assert.NotNull(clientConnection); 326Assert.NotNull(serverConnection); 367Assert.NotNull(serverConnection); 368Assert.NotNull(clientConnection); 455Assert.NotNull(connectionContext);
Microsoft.AspNetCore.Shared.Tests (22)
AdaptiveCapacityDictionaryTests.cs (4)
49Assert.NotNull(dict._dictionaryStorage); 57Assert.NotNull(dict._dictionaryStorage); 1292Assert.NotNull(dict._dictionaryStorage); 1308Assert.NotNull(dict._dictionaryStorage);
DotNetMuxerTests.cs (1)
19Assert.NotNull(muxerPath);
NonCapturingTimerTest.cs (1)
37Assert.NotNull(await Task.Run(() => message.Value));
ObjectMethodExecutorTest.cs (4)
174Assert.NotNull(result); 205Assert.NotNull(result); 222Assert.NotNull(result); 319Assert.NotNull(result);
PropertyHelperTest.cs (11)
55Assert.NotNull(helper.ValueGetter); 85Assert.NotNull(helper.ValueSetter); 235Assert.NotNull(helpers); 255Assert.NotNull(helpers); 275Assert.NotNull(helpers); 638Assert.NotNull(dictValues); 652Assert.NotNull(dictValues); 666Assert.NotNull(dictValues); 681Assert.NotNull(dictValues); 697Assert.NotNull(dictValues); 713Assert.NotNull(dictValues);
SecurityHelperTests.cs (1)
18Assert.NotNull(user);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (7)
HubConnectionTests.cs (7)
1384Assert.NotNull(errorLog); 1438Assert.NotNull(errorLog); 1606Assert.NotNull(headerValues); 1647Assert.NotNull(headerValues); 1682Assert.NotNull(headerValues); 2107Assert.NotNull(pollTracker); 2108Assert.NotNull(pollTracker.ActivePoll);
Microsoft.AspNetCore.SignalR.Client.Tests (19)
HttpConnectionTests.ConnectionLifecycle.cs (1)
270Assert.NotNull(testTransport.Receiving);
HttpConnectionTests.cs (2)
108Assert.NotNull(httpClientHandler); 121Assert.NotNull(httpOptions.Cookies);
HttpConnectionTests.Transport.cs (2)
98Assert.NotNull(feature); 121Assert.NotNull(userAgentHeader);
HubClientProxyGeneratorTests.cs (4)
244Assert.NotNull(noArgFunc); 248Assert.NotNull(singleArgFunc); 253Assert.NotNull(manyArgsFunc); 258Assert.NotNull(returnTaskFunc);
HubConnectionBuilderExtensionsTests.cs (1)
97Assert.NotNull(loggerFactory);
HubConnectionBuilderTests.cs (1)
67Assert.NotNull(builder.Build());
HubConnectionTests.cs (2)
793Assert.NotNull(resolvedOptions); 794Assert.NotNull(originalOptions);
HubConnectionTests.Protocol.cs (1)
195Assert.NotNull(closeException);
HubConnectionTests.Reconnect.cs (2)
362Assert.NotNull(attemptsLog); 367Assert.NotNull(waitingLog);
HubServerProxyGeneratorTests.cs (2)
118Assert.NotNull(result); 166Assert.NotNull(result);
LongPollingTransportTests.cs (1)
693Assert.NotNull(deleteRequest);
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Internal\Protocol\JsonHubProtocolTestsBase.cs (1)
237Assert.NotNull(message);
Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
232Assert.NotNull(message); 257Assert.NotNull(message);
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
HubLifetimeManagerTestBase.cs (3)
191Assert.NotNull(invocation.InvocationId); 218Assert.NotNull(invocation.InvocationId); 248Assert.NotNull(invocation.InvocationId);
ScaleoutHubLifetimeManagerTests.cs (3)
487Assert.NotNull(invocation.InvocationId); 518Assert.NotNull(invocation.InvocationId); 650Assert.NotNull(invocation.InvocationId);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
RedisDependencyInjectionExtensionsTests.cs (2)
28Assert.NotNull(options.Value); 29Assert.NotNull(options.Value.Configuration);
Microsoft.AspNetCore.SignalR.Tests (50)
ClientProxyTests.cs (9)
36Assert.NotNull(resultArgs); 57Assert.NotNull(resultArgs); 78Assert.NotNull(resultArgs); 99Assert.NotNull(resultArgs); 120Assert.NotNull(resultArgs); 141Assert.NotNull(resultArgs); 162Assert.NotNull(resultArgs); 183Assert.NotNull(resultArgs); 204Assert.NotNull(resultArgs);
HubConnectionHandlerTests.Activity.cs (1)
76Assert.NotNull(activities[4].Parent);
HubConnectionHandlerTests.ClientResult.cs (9)
29Assert.NotNull(invocationMessage.InvocationId); 62Assert.NotNull(invocationMessage.InvocationId); 218Assert.NotNull(invocationMessage.InvocationId); 257Assert.NotNull(invocationMessage.InvocationId); 258Assert.NotNull(invocationMessage2.InvocationId); 259Assert.NotNull(invocationMessage3.InvocationId); 308Assert.NotNull(invocationMessage.InvocationId); 463Assert.NotNull(invocationMessage.InvocationId); 501Assert.NotNull(invocationMessage.InvocationId);
HubConnectionHandlerTests.cs (28)
80Assert.NotNull(result); 207Assert.NotNull(client.HandshakeResponseMessage); 263Assert.NotNull(client.HandshakeResponseMessage); 289Assert.NotNull(client.HandshakeResponseMessage); 367Assert.NotNull(response); 406Assert.NotNull(completionMessage); 441Assert.NotNull(response); 444Assert.NotNull(completionMessage); 466Assert.NotNull(client.HandshakeResponseMessage); 561Assert.NotNull(completionMessage); 566Assert.NotNull(completionMessage); 572Assert.NotNull(closeMessage); 612Assert.NotNull(completionMessage); 617Assert.NotNull(completionMessage); 622Assert.NotNull(completionMessage); 648Assert.NotNull(client.HandshakeResponseMessage); 2106Assert.NotNull(completion); 2147Assert.NotNull(completion1); 2150Assert.NotNull(completion2); 2215Assert.NotNull(message.Error); 2307Assert.NotNull(context.Resource); 2314Assert.NotNull(resource.Context); 2316Assert.NotNull(resource.Context.GetHttpContext()); 2317Assert.NotNull(resource.ServiceProvider); 2681Assert.NotNull(completion); 3230Assert.NotNull(completion); 3265Assert.NotNull(completion); 3905Assert.NotNull(client.HandshakeResponseMessage);
MapSignalRTests.cs (2)
324Assert.NotNull(endpoint.Metadata.GetMetadata<NegotiateMetadata>()); 355Assert.NotNull(endpoint.Metadata.GetMetadata<NegotiateMetadata>());
WebSocketsTransportTests.cs (1)
52Assert.NotNull(webSocketsOptions);
Microsoft.AspNetCore.StaticAssets.Tests (11)
StaticAssetsIntegrationTests.cs (11)
62Assert.NotNull(response); 112Assert.NotNull(response); 164Assert.NotNull(response); 227Assert.NotNull(response); 284Assert.NotNull(response); 333Assert.NotNull(response); 386Assert.NotNull(response); 442Assert.NotNull(response); 624Assert.NotNull(response.Headers.ETag); 625Assert.NotNull(response.Headers.ETag.Tag); 763Assert.NotNull(response.Content.Headers.LastModified);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
FallbackStaticFileTest.cs (1)
125Assert.NotNull(fileInfo);
Microsoft.AspNetCore.StaticFiles.Tests (10)
CacheHeaderTests.cs (3)
21Assert.NotNull(response.Headers.ETag); 22Assert.NotNull(response.Headers.ETag.Tag); 170Assert.NotNull(response.Content.Headers.LastModified);
RangeHeaderTests.cs (2)
274Assert.NotNull(resp.Content.Headers.ContentRange); 295Assert.NotNull(resp.Content.Headers.ContentRange);
StaticFileMiddlewareTests.cs (5)
193Assert.NotNull(response.Headers.ETag); 232Assert.NotNull(response.Headers.ETag); 274Assert.NotNull(response.Headers.ETag); 324Assert.NotNull(response.Headers.ETag); 367Assert.NotNull(response.Headers.ETag);
Microsoft.AspNetCore.TestHost.Tests (32)
ClientHandlerTests.cs (14)
31Assert.NotNull(features.Get<IHttpRequestFeature>().Body); 32Assert.NotNull(features.Get<IHttpRequestFeature>().Headers); 33Assert.NotNull(features.Get<IHttpResponseFeature>().Headers); 34Assert.NotNull(features.Get<IHttpResponseBodyFeature>().Stream); 38Assert.NotNull(features.Get<IHttpRequestLifetimeFeature>()); 56Assert.NotNull(context.Request.Body); 57Assert.NotNull(context.Request.Headers); 58Assert.NotNull(context.Response.Headers); 59Assert.NotNull(context.Response.Body); 82Assert.NotNull(features.Get<IHttpRequestFeature>().Body); 83Assert.NotNull(features.Get<IHttpRequestFeature>().Headers); 84Assert.NotNull(features.Get<IHttpResponseFeature>().Headers); 85Assert.NotNull(features.Get<IHttpResponseBodyFeature>().Stream); 89Assert.NotNull(features.Get<IHttpRequestLifetimeFeature>());
HttpContextBuilderTests.cs (4)
39Assert.NotNull(context.Request.Body); 40Assert.NotNull(context.Request.Headers); 41Assert.NotNull(context.Response.Headers); 42Assert.NotNull(context.Response.Body);
RequestBuilderTests.cs (1)
32Assert.NotNull(request.Content);
ResponseBodyTests.cs (1)
99Assert.NotNull(ex);
ResponseResetTests.cs (2)
40Assert.NotNull(feature); 56Assert.NotNull(feature);
TestClientTests.cs (2)
1029Assert.NotNull(upgradeFeature); 1034Assert.NotNull(webSocketFeature);
TestServerTests.cs (6)
290Assert.NotNull(serverAddressesFeature); 744Assert.NotNull(listener.BeginRequest?.HttpContext); 745Assert.NotNull(listener.EndRequest?.HttpContext); 770Assert.NotNull(listener.BeginRequest?.HttpContext); 772Assert.NotNull(listener.UnhandledException?.HttpContext); 773Assert.NotNull(listener.UnhandledException?.Exception);
WebSocketClientTests.cs (2)
103Assert.NotNull(upgradeFeature); 108Assert.NotNull(webSocketFeature);
Microsoft.AspNetCore.Tests (8)
WebApplicationTests.cs (7)
168Assert.NotNull(newApp.ServerFeatures); 1389Assert.NotNull(config); 1406Assert.NotNull(config); 1464Assert.NotNull(linkGenerator); 1807Assert.NotNull(builder.Build()); 2453Assert.NotNull(authFeature); 2527Assert.NotNull(iHostApplicationBuilder.Environment.ContentRootFileProvider);
WebHostTests.cs (1)
94Assert.NotNull(linkGenerator);
Microsoft.AspNetCore.WebUtilities.Tests (33)
AspNetCoreTempDirectoryTests.cs (1)
12Assert.NotNull(tempDirectory);
FileBufferingReadStreamTests.cs (10)
126Assert.NotNull(stream.TempFileName); 135Assert.NotNull(stream.TempFileName); 187Assert.NotNull(stream.TempFileName); 194Assert.NotNull(stream.TempFileName); 288Assert.NotNull(stream.TempFileName); 297Assert.NotNull(stream.TempFileName); 319Assert.NotNull(stream.TempFileName); 390Assert.NotNull(stream.TempFileName); 397Assert.NotNull(stream.TempFileName); 617Assert.NotNull(stream.TempFileName);
FileBufferingWriteStreamTests.cs (7)
80Assert.NotNull(fileStream); 103Assert.NotNull(fileStream); 127Assert.NotNull(fileStream); 191Assert.NotNull(fileStream); 214Assert.NotNull(fileStream); 238Assert.NotNull(fileStream); 382Assert.NotNull(bufferingStream.FileStream);
MultipartReaderTests.cs (15)
114Assert.NotNull(section); 157Assert.NotNull(section); 174Assert.NotNull(section); 191Assert.NotNull(section); 199Assert.NotNull(section); 217Assert.NotNull(section); 225Assert.NotNull(section); 243Assert.NotNull(section); 251Assert.NotNull(section); 260Assert.NotNull(section); 290Assert.NotNull(section); 298Assert.NotNull(section); 337Assert.NotNull(section); 372Assert.NotNull(section); 390Assert.NotNull(section);
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
711Assert.NotNull(actual);
Microsoft.Build.CommandLine.UnitTests (19)
CommandLineSwitches_Tests.cs (19)
265Assert.NotNull(duplicateSwitchErrorMessage); 780Assert.NotNull(parameters); 793Assert.NotNull(parameters); 811Assert.NotNull(parameters); 825Assert.NotNull(parameters); 837Assert.NotNull(parameters); 854Assert.NotNull(parameters); 865Assert.NotNull(parameters); 878Assert.NotNull(parameters); 897Assert.NotNull(parameters); 1035Assert.NotNull(parameters); 1044Assert.NotNull(parameters); 1071Assert.NotNull(parameters); 1138Assert.NotNull(parameters); 1295Assert.NotNull(actualWarningsAsErrors); 1316Assert.NotNull(actualWarningsAsErrors); 1340Assert.NotNull(actualWarningsAsErrors); 1357Assert.NotNull(actualWarningsAsErrors); 1422Assert.NotNull(actualWarningsAsMessages);
Microsoft.Build.Engine.OM.UnitTests (71)
Construction\ProjectChooseElement_Tests.cs (1)
228Assert.NotNull(choose.OtherwiseElement);
Construction\ProjectRootElement_Tests.cs (1)
1313Assert.NotNull(xml0);
Construction\ProjectUsingTaskElement_Tests.cs (1)
423Assert.NotNull(usingTask);
Construction\UsingTaskParameterGroup_Tests.cs (3)
66Assert.NotNull(parameterGroup); 78Assert.NotNull(parameterGroup); 80Assert.NotNull(parameterGroup.Parameters);
Definition\ProjectCollection_Tests.cs (1)
1497Assert.NotNull(property);
Definition\ProjectItem_Tests.cs (1)
101Assert.NotNull(item.Xml);
Definition\ProjectProperty_Tests.cs (2)
51Assert.NotNull(property.Xml); 74Assert.NotNull(property.Xml);
Definition\ProtectImports_Tests.cs (1)
489Assert.NotNull(metadata); // "Imported metadata not found after the project's one was removed."
Instance\ProjectInstance_Tests.cs (2)
438Assert.NotNull(projAInstanceItem.GetMetadataValue("Identity")); 480Assert.NotNull(projAInstanceItem.GetMetadataValue("Identity"));
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (19)
29Assert.NotNull(appendWhere); 32Assert.NotNull(c1Where); 51Assert.NotNull(ct); 62Assert.NotNull(c1Where); 80Assert.NotNull(ct); 218Assert.NotNull(view); 220Assert.NotNull(real); 261Assert.NotNull(expected); 262Assert.NotNull(actual); 300Assert.NotNull(link); 302Assert.NotNull(remoter); 304Assert.NotNull(real); 322Assert.NotNull(obj); 333Assert.NotNull(obj); 344Assert.NotNull(obj); 436Assert.NotNull(viewChild); 479Assert.NotNull(prj); 662Assert.NotNull(viewParams); 680Assert.NotNull(viewParamsLoc);
ObjectModelRemoting\Helpers\ViewValidation.cs (4)
303Assert.NotNull(viewCollection); 304Assert.NotNull(realCollection); 322Assert.NotNull(viewCollection); 323Assert.NotNull(realCollection);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (10)
29Assert.NotNull(added); 32Assert.NotNull(result); 44Assert.NotNull(md); 85Assert.NotNull(added); 263Assert.NotNull(view); 264Assert.NotNull(real); 278Assert.NotNull(view); 279Assert.NotNull(real); 300Assert.NotNull(viewProps); 301Assert.NotNull(realProps);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
46Assert.NotNull(newView);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (4)
32Assert.NotNull(projReal); 34Assert.NotNull(this.RealXml); 36Assert.NotNull(projView); 48Assert.NotNull(projView);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (8)
161Assert.NotNull(pair.GetSingleItemWithVerify(ObjectType.View, "barWithMetadataFast.cpp")); 163Assert.NotNull(barWithMetadataViewFast); 177Assert.NotNull(pair.GetSingleItemWithVerify(ObjectType.View, "fooWithMetadata.cpp")); 179Assert.NotNull(barWithMetadataView); 196Assert.NotNull(pair.GetSingleItemWithVerify(ObjectType.Real, "fooWithMetadataFast.cpp")); 198Assert.NotNull(fooWithMetadataRealFast); 215Assert.NotNull(pair.GetSingleItemWithVerify(ObjectType.Real, "barFast.cpp")); 217Assert.NotNull(fooRealFast);
ObjectModelRemoting\LinkedEvaluationReadOnly_Tests.cs (4)
26Assert.NotNull(projReal); 28Assert.NotNull(this.Real); 30Assert.NotNull(projView); 42Assert.NotNull(projView);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (4)
55Assert.NotNull(targetView); 62Assert.NotNull(guestView); 83Assert.NotNull(newView); 160Assert.NotNull(existingItemGroup);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (4)
245Assert.NotNull(dbg); 247Assert.NotNull(view); 249Assert.NotNull(link); 251Assert.NotNull(remoter);
Microsoft.Build.Engine.UnitTests (154)
AssemblyNameEx_Tests.cs (1)
212Assert.NotNull(a1.ToString());
BackEnd\AssemblyTaskFactory_Tests.cs (13)
284Assert.NotNull(createdTask); 315Assert.NotNull(createdTask); 348Assert.NotNull(createdTask); 381Assert.NotNull(createdTask); 416Assert.NotNull(createdTask); 449Assert.NotNull(createdTask); 480Assert.NotNull(createdTask); 515Assert.NotNull(createdTask); 544Assert.NotNull(createdTask); 577Assert.NotNull(createdTask); 610Assert.NotNull(createdTask); 644Assert.NotNull(createdTask); 667Assert.NotNull(createdTask);
BackEnd\BatchingEngine_Tests.cs (2)
91Assert.NotNull(items); 111Assert.NotNull(items);
BackEnd\BinaryTranslator_Tests.cs (2)
238Assert.NotNull(value); 272Assert.NotNull(remote);
BackEnd\BuildEventArgTransportSink_Tests.cs (2)
72Assert.NotNull(loggingPacket); 136Assert.NotNull(weakTransportDelegateReference.Target);
BackEnd\BuildManager_Tests.cs (4)
777Assert.NotNull(projectStartedEvent.Properties); 781Assert.NotNull(properties); 2051Assert.NotNull(preRoot = ProjectRootElement.TryOpen(rootProjectPath, projectCollection)); // "The root project file should be in the weak cache." 2052Assert.NotNull(preImported = ProjectRootElement.TryOpen(importedProjectPath, projectCollection)); // "The imported project file should be in the weak cache."
BackEnd\BuildRequest_Tests.cs (2)
71Assert.NotNull(request.Targets); 75Assert.NotNull(request2.Targets);
BackEnd\BuildRequestConfiguration_Tests.cs (2)
385Assert.NotNull(lookup); 411Assert.NotNull(lookup);
BackEnd\BuildRequestEntry_Tests.cs (1)
85Assert.NotNull(entry.Result);
BackEnd\CentralForwardingLogger_Tests.cs (1)
83Assert.NotNull(centralLogger.BuildEventRedirector);
BackEnd\EventRedirectorToSink_Tests.cs (1)
50Assert.NotNull(eventRedirector); // "eventRedirector was not supposed to be null"
BackEnd\LoggingService_Tests.cs (15)
67Assert.NotNull(logServiceComponent); 74Assert.NotNull(logServiceComponent); 273Assert.NotNull(_initializedService.RegisteredLoggerTypeNames); 282Assert.NotNull(_initializedService.RegisteredSinkNames); 298Assert.NotNull(_initializedService.RegisteredLoggerTypeNames); 306Assert.NotNull(_initializedService.RegisteredSinkNames); 363Assert.NotNull(_initializedService.RegisteredLoggerTypeNames); 373Assert.NotNull(_initializedService.RegisteredSinkNames); 402Assert.NotNull(_initializedService.RegisteredLoggerTypeNames); 450Assert.NotNull(_initializedService.RegisteredSinkNames); 488Assert.NotNull(_initializedService.RegisteredSinkNames); 566Assert.NotNull(_initializedService.RegisteredLoggerTypeNames); 598Assert.NotNull(_initializedService.RegisteredSinkNames); 628Assert.NotNull(_initializedService.RegisteredSinkNames); 707Assert.NotNull(messageEventFromPacket);
BackEnd\ResultsCache_Tests.cs (1)
135Assert.NotNull(retrievedResult.Exception);
BackEnd\TargetEntry_Tests.cs (8)
706Assert.NotNull(targeta); 707Assert.NotNull(targetb); 708Assert.NotNull(targetc); 719Assert.NotNull(targetOutputsB); 727Assert.NotNull(targetOutputsC); 803Assert.NotNull(targeta); 804Assert.NotNull(targetb); 805Assert.NotNull(targetc);
BackEnd\TargetResult_Tests.cs (1)
67Assert.NotNull(result.Exception);
BackEnd\TaskExecutionHost_Tests.cs (2)
968Assert.NotNull((_host as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper); 1356Assert.NotNull(_bucket.Lookup.GetProperty("output"));
BackEnd\TaskHost_Tests.cs (1)
103Assert.NotNull(((ITaskItem[])targetOutputs["Build"])[0]);
BackEnd\TaskHostConfiguration_Tests.cs (7)
472Assert.NotNull(deserializedConfig.TaskParameters); 475Assert.NotNull(deserializedConfig.GlobalProperties); 523Assert.NotNull(deserializedConfig.TaskParameters); 572Assert.NotNull(deserializedConfig.TaskParameters); 620Assert.NotNull(deserializedConfig.TaskParameters); 675Assert.NotNull(deserializedConfig.WarningsAsErrors); 721Assert.NotNull(deserializedConfig.WarningsAsMessages);
BackEnd\TaskHostTaskComplete_Tests.cs (5)
125Assert.NotNull(deserializedComplete.TaskOutputParameters); 148Assert.NotNull(deserializedComplete.TaskOutputParameters); 174Assert.NotNull(deserializedComplete.TaskOutputParameters); 201Assert.NotNull(deserializedComplete.TaskOutputParameters); 227Assert.NotNull(deserializedComplete.TaskOutputParameters);
BackEnd\TaskRegistry_Tests.cs (33)
118Assert.NotNull(registrationRecords); // "Task registrationrecord not found in TaskRegistry.TaskRegistrations!" 158Assert.NotNull(registrationRecords); // "Task registrationrecord not found in TaskRegistry.TaskRegistrations!" 202Assert.NotNull(singletonBucket); // "Record not found in TaskRegistry.TaskRegistrations!" 211Assert.NotNull(duplicateBucket); // "Records not found in TaskRegistry.TaskRegistrations!" 265Assert.NotNull(registrationRecords); // "Task registrationrecord not found in TaskRegistry.TaskRegistrations!" 351Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 387Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 423Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 461Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 499Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 566Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 607Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 695Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 768Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 820Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 934Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 982Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 1044Assert.NotNull(_testTaskLocation); // "Need a test task to run this test" 1144Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1199Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1228Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1280Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1283Assert.NotNull(inlineTaskRecord); 1316Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1320Assert.NotNull(inlineTaskRecord); 1325Assert.NotNull(parameterInfo); 1332Assert.NotNull(parameterInfo); 1689Assert.NotNull(registeredTaskRecords); // "Task to be found in TaskRegistry.TaskRegistrations!" 1693Assert.NotNull(inlineTaskRecord); 1702Assert.NotNull(parameterInfo); 1741Assert.NotNull(inlineTaskRecord); 1765Assert.NotNull(inlineTaskRecord); 2015Assert.NotNull(record); // "Should have retrieved a match."
BuildEventArgsSerialization_Tests.cs (1)
1178Assert.NotNull(deserializedArgs);
Collections\OMcollections_tests.cs (2)
174Assert.NotNull(enumerator.Current); 178Assert.NotNull(enumerator.Current);
Construction\SolutionProjectGenerator_Tests.cs (4)
2461Assert.NotNull(projectInstance); 2629Assert.NotNull(projectInstance); 2755Assert.NotNull(itemGroup); 2775Assert.NotNull(itemGroup);
Definition\Toolset_Tests.cs (1)
154Assert.NotNull(t2.ImportPropertySearchPathsTable);
Definition\ToolsetConfigurationReader_Tests.cs (2)
50Assert.NotNull(msbuildToolsetSection); 52Assert.NotNull(msbuildToolsetSection.Toolsets);
Definition\ToolsVersion_Tests.cs (4)
90Assert.NotNull(taskoverrideRegistry); 109Assert.NotNull(taskoverrideRegistry); 128Assert.NotNull(taskoverrideRegistry); 148Assert.NotNull(taskoverrideRegistry);
Evaluation\Evaluator_Tests.cs (3)
164Assert.NotNull(project.GetProperty("foo")); 177Assert.NotNull(project.GetProperty("foo")); 178Assert.NotNull(project.GetProperty("bar"));
Evaluation\ProjectRootElementCache_Tests.cs (1)
93Assert.NotNull(projectRootElement);
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
825Assert.NotNull(property?.Xml?.ContainingProject?.FullPath);
Evaluation\ProjectStringCache_Tests.cs (8)
69Assert.NotNull(node1); 70Assert.NotNull(node2); 129Assert.NotNull(node1); 130Assert.NotNull(node2); 206Assert.NotNull(itemGroupContent); 216Assert.NotNull(node1); 217Assert.NotNull(node2); 226Assert.NotNull(itemGroupContent);
TaskParameter_Tests.cs (20)
197Assert.NotNull(foo); 206Assert.NotNull(foo2); 225Assert.NotNull(foo); 236Assert.NotNull(foo2); 253Assert.NotNull(wrappedParameter); 264Assert.NotNull(wrappedParameter2); 282Assert.NotNull(foo); 291Assert.NotNull(foo2); 307Assert.NotNull(foo); 316Assert.NotNull(foo2); 327Assert.NotNull(foo4); 343Assert.NotNull(foo); 353Assert.NotNull(foo2); 374Assert.NotNull(foo); 385Assert.NotNull(foo2); 407Assert.NotNull(foo); 418Assert.NotNull(foo2); 431Assert.NotNull(foo4); 454Assert.NotNull(foo); 467Assert.NotNull(foo2);
WarningsAsMessagesAndErrors_Tests.cs (3)
225Assert.NotNull(actualEvent); 237Assert.NotNull(actualEvent); 249Assert.NotNull(actualEvent);
Microsoft.Build.Tasks.UnitTests (8)
AssemblyNameEx_Tests.cs (1)
212Assert.NotNull(a1.ToString());
CodeTaskFactoryTests.cs (1)
1227Assert.NotNull(error);
ResolveNonMSBuildProjectOutput_Tests.cs (1)
229Assert.NotNull(resolvedOutputs);
ResolveSDKReference_Tests.cs (1)
553Assert.NotNull(reference);
ResourceHandling\GenerateResource_Tests.cs (4)
3826Assert.NotNull(t.FilesWritten); // "The state file should have been written, but there aren't any." 3827Assert.NotNull(t.StateFile); // "State file should be defined" 4204Assert.NotNull(strLanguage); 4205Assert.NotNull(resourcesNamespace);
Microsoft.Build.UnitTests.Shared (4)
ObjectModelHelpers.cs (4)
407Assert.NotNull(expectedItem); // String.Format("Item '{0}' was returned but not expected.", actualItem.ItemSpec)); 491Assert.NotNull(actual); // "Result should be non-null." 1902Assert.NotNull(ex1); // "First method did not throw, second: {0}", ex2 == null ? "" : ex2.GetType() + ex2.Message); 1903Assert.NotNull(ex2); // "Second method did not throw, first: {0}", ex1 == null ? "" : ex1.GetType() + ex1.Message);
Microsoft.DotNet.Arcade.Sdk.Tests (1)
SourceMappingToNugetConfigTest.cs (1)
59Assert.NotNull(generatedMapping);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (8)
CreateVisualStudioWorkloadSetTests.cs (2)
50Assert.NotNull(msi); 64Assert.NotNull(versionDir);
CreateVisualStudioWorkloadTests.cs (2)
77Assert.NotNull(manifestMsiItem); 213Assert.NotNull(manifestMsiItem);
MsiTests.cs (4)
76Assert.NotNull(msi603.GetMetadata(Metadata.WixObj)); 77Assert.NotNull(msi604.GetMetadata(Metadata.WixObj)); 107Assert.NotNull(item.GetMetadata(Metadata.WixObj)); 142Assert.NotNull(item.GetMetadata(Metadata.WixObj));
Microsoft.DotNet.XUnitAssert.Tests (24)
BooleanAssertsTests.cs (2)
50 Assert.NotNull(ex); 98 Assert.NotNull(ex);
EquivalenceAssertsTests.cs (3)
1532 Assert.NotNull(assemblyPath); 1544 Assert.NotNull(assemblyPath); 1546 Assert.NotNull(assemblyParentPath);
EventAssertsTests.cs (17)
61 Assert.NotNull(evt); 126 Assert.NotNull(evt); 169 Assert.NotNull(evt); 211 Assert.NotNull(evt); 228 Assert.NotNull(evt); 292 Assert.NotNull(evt); 309 Assert.NotNull(evt); 326 Assert.NotNull(evt); 343 Assert.NotNull(evt); 385 Assert.NotNull(evt); 402 Assert.NotNull(evt); 466 Assert.NotNull(evt); 483 Assert.NotNull(evt); 500 Assert.NotNull(evt); 517 Assert.NotNull(evt); 576 Assert.NotNull(evt); 641 Assert.NotNull(evt);
NullAssertsTests.cs (2)
12 Assert.NotNull(new object()); 29 var ex = Record.Exception(() => Assert.NotNull(null));
Microsoft.Extensions.Caching.Hybrid.Tests (19)
BufferReleaseTests.cs (8)
40Assert.NotNull(first); 52Assert.NotNull(second); 113Assert.NotNull(cache.BackendCache); 125Assert.NotNull(first); 137Assert.NotNull(second); 171Assert.NotNull(cache.BackendCache); 183Assert.NotNull(first); 195Assert.NotNull(second);
DistributedCacheTests.cs (6)
72Assert.NotNull(actual); 80Assert.NotNull(actual); 118Assert.NotNull(actual); 126Assert.NotNull(actual); 327Assert.NotNull(segment.Array); 335Assert.NotNull(segment.Array);
RedisTests.cs (1)
101Assert.NotNull(ttl);
ServiceConstructionTests.cs (4)
44Assert.NotNull(defaults); 73Assert.NotNull(defaults); 173Assert.NotNull(cache.BackendCache); 195Assert.NotNull(cache.BackendCache);
Microsoft.Extensions.Caching.SqlServer.Tests (9)
SqlServerCacheServicesExtensionsTest.cs (1)
50Assert.NotNull(distributedCache);
SqlServerCacheWithDatabaseTest.cs (8)
504Assert.NotNull(cacheItemInfo); 532Assert.NotNull(cacheItemInfo); 588Assert.NotNull(value); 593Assert.NotNull(cacheItemInfo); 621Assert.NotNull(cacheItemInfo); 663Assert.NotNull(value); 718Assert.NotNull(value); 721Assert.NotNull(cacheItemInfo);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (11)
CacheServiceExtensionsTests.cs (5)
28Assert.NotNull(distributedCache); 47Assert.NotNull(distributedCache); 73Assert.NotNull(distributedCache); 90Assert.NotNull(distributedCache); 118Assert.NotNull(distributedCache);
RedisCacheSetAndRemoveTests.cs (4)
112Assert.NotNull(arr); 126Assert.NotNull(arr); 148Assert.NotNull(value); 171Assert.NotNull(value);
TimeExpirationAsyncTests.cs (1)
259Assert.NotNull(result);
TimeExpirationTests.cs (1)
244Assert.NotNull(result);
Microsoft.Extensions.Features.Tests (1)
FeatureCollectionExtensionsTests.cs (1)
23Assert.NotNull(retrievedThing);
Microsoft.Extensions.FileProviders.Embedded.Tests (14)
EmbeddedFileProviderTests.cs (10)
32Assert.NotNull(fileInfo); 49Assert.NotNull(fileInfo); 68Assert.NotNull(fileInfo); 82Assert.NotNull(fileInfo); 115Assert.NotNull(fileInfo); 153Assert.NotNull(fileInfo); 191Assert.NotNull(fileInfo); 232Assert.NotNull(files); 249Assert.NotNull(files); 264Assert.NotNull(token);
Manifest\EmbeddedFilesManifestTests.cs (1)
55Assert.NotNull(entry);
Manifest\ManifestParserTests.cs (3)
23Assert.NotNull(manifest); 39Assert.NotNull(manifest); 101Assert.NotNull(result);
Microsoft.Extensions.Http.Polly.Tests (18)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (12)
58Assert.NotNull(client); 93Assert.NotNull(client); 131Assert.NotNull(client); 172Assert.NotNull(client); 216Assert.NotNull(client); 269Assert.NotNull(client); 314Assert.NotNull(client); 357Assert.NotNull(client); 428Assert.NotNull(client); 455Assert.NotNull(registry); 492Assert.NotNull(registry); 511Assert.NotNull(existingRegistry);
PolicyHttpMessageHandlerTest.cs (6)
283Assert.NotNull(context); 294Assert.NotNull(context); 313Assert.NotNull(c); 374Assert.NotNull(context); // The handler did generate a context for the execution. 433Assert.NotNull(OnSendAsync); 444Assert.NotNull(OnSendAsync);
Microsoft.Extensions.Localization.Tests (1)
StringLocalizerOfTTest.cs (1)
130Assert.NotNull(localizer);
Microsoft.Extensions.SecretManager.Tools.Tests (1)
SecretManagerTests.cs (1)
351Assert.NotNull(secretManager.SecretsFilePath);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
DnsServiceEndpointResolverTests.cs (3)
24Assert.NotNull(initialResult); 28Assert.NotNull(secondResult); 32Assert.NotNull(thirdResult);
DnsSrvServiceEndpointResolverTests.cs (1)
217Assert.NotNull(hostNameFeature);
Microsoft.Extensions.ServiceDiscovery.Tests (3)
ConfigurationServiceEndpointResolverTests.cs (3)
177Assert.NotNull(hostNameFeature); 309Assert.NotNull(hostNameFeature); 331Assert.NotNull(hostNameFeature);
Microsoft.Net.Http.Headers.Tests (9)
CacheControlHeaderValueTest.cs (3)
45Assert.NotNull(cacheControl.NoCacheHeaders); 52Assert.NotNull(cacheControl.PrivateHeaders); 60Assert.NotNull(cacheControl.Extensions);
EntityTagHeaderValueTest.cs (3)
247Assert.NotNull(result); 251Assert.NotNull(result); 255Assert.NotNull(result);
MediaTypeHeaderValueTest.cs (3)
520Assert.NotNull(results); 524Assert.NotNull(results); 528Assert.NotNull(results);
Mvc.Api.Analyzers.Test (8)
SymbolApiResponseMetadataProviderTest.cs (8)
85Assert.NotNull(metadata.Attribute); 108Assert.NotNull(metadata.Attribute); 131Assert.NotNull(metadata.Attribute); 154Assert.NotNull(metadata.Attribute); 177Assert.NotNull(metadata.Attribute); 199Assert.NotNull(metadata.Attribute); 204Assert.NotNull(metadata.Attribute); 230Assert.NotNull(metadata.Attribute);
Sockets.BindTests (2)
SocketTransportOptionsTests.cs (2)
68Assert.NotNull(listenSocket.LocalEndPoint); 79Assert.NotNull(fileHandleSocket.LocalEndPoint);
Sockets.FunctionalTests (5)
SocketTransportTests.cs (1)
38Assert.NotNull(socket);
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (2)
72Assert.NotNull(tlsFeature); 100Assert.NotNull(tlsFeature);
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
662Assert.NotNull(beforeAbort); 663Assert.NotNull(afterAbort);
System.ServiceModel.Federation.Tests (3)
WSTrustChannelSecurityTokenProviderTest.cs (3)
65Assert.NotNull(trustRequest); 66Assert.NotNull(trustRequest.Claims); 69Assert.NotNull(ctype);
System.ServiceModel.Http.Tests (1)
Channels\HttpRequestMessagePropertyTest.cs (1)
18Assert.NotNull(requestMsgProperty.Headers);
System.ServiceModel.Primitives.Tests (63)
Channels\MessageTest.cs (1)
109Assert.NotNull(msgFDetail);
Description\ContractDescriptionTest.cs (4)
183Assert.NotNull(contract); 213Assert.NotNull(operation.BeginMethod); 214Assert.NotNull(operation.EndMethod); 231Assert.NotNull(operation.SyncMethod);
Description\SecurityCredentialsManagerTest.cs (2)
18Assert.NotNull(credentials); 22Assert.NotNull(tokenManager);
IdentityModel\SecurityTokenSerializerTest.cs (2)
28Assert.NotNull(sts); 56Assert.NotNull(sts);
IdentityModel\SymmetricSecurityKeyTest.cs (2)
18Assert.NotNull(mgsakey.GetSymmetricKey()); 27Assert.NotNull(mgsaalg.GetSymmetricAlgorithm(algorit));
ServiceModel\ChannelFactoryTest.cs (2)
61Assert.NotNull(channel); 118Assert.NotNull(channel);
ServiceModel\DuplexChannelFactoryTest.cs (7)
149Assert.NotNull(proxy); 164Assert.NotNull(proxy); 168Assert.NotNull(proxy); 172Assert.NotNull(proxy); 178Assert.NotNull(proxy); 182Assert.NotNull(proxy); 251Assert.NotNull(channel);
ServiceModel\ExtensionCollection.cs (1)
25Assert.NotNull(result);
ServiceModel\FaultExceptionTest.cs (41)
22Assert.NotNull(exception); 23Assert.NotNull(exception.Detail); 24Assert.NotNull(exception.Reason); 25Assert.NotNull(exception.Code); 32Assert.NotNull(exception2); 33Assert.NotNull(exception2.Code); 34Assert.NotNull(exception2.Reason); 53Assert.NotNull(faultException.Detail); 76Assert.NotNull(faultException.Code); 80Assert.NotNull(faultException.Reason); 95Assert.NotNull(exception); 96Assert.NotNull(exception.Reason); 97Assert.NotNull(exception.Code); 108Assert.NotNull(exception); 109Assert.NotNull(exception.Detail); 110Assert.NotNull(exception.Reason); 111Assert.NotNull(exception.Code); 118Assert.NotNull(exception); 119Assert.NotNull(exception.Code); 120Assert.NotNull(exception.Reason); 133Assert.NotNull(exception); 134Assert.NotNull(exception.Detail); 135Assert.NotNull(exception.Reason); 141Assert.NotNull(exception); 142Assert.NotNull(exception.Code); 143Assert.NotNull(exception.Reason); 158Assert.NotNull(exception); 159Assert.NotNull(exception.Detail); 160Assert.NotNull(exception.Reason); 161Assert.NotNull(exception.Code); 168Assert.NotNull(exception); 169Assert.NotNull(exception.Code); 170Assert.NotNull(exception.Reason); 185Assert.NotNull(exception); 186Assert.NotNull(exception.Detail); 187Assert.NotNull(exception.Reason); 188Assert.NotNull(exception.Code); 189Assert.NotNull(exception.Action); 200Assert.NotNull(exception); 201Assert.NotNull(exception.Code); 202Assert.NotNull(exception.Reason);
ServiceModel\TypedMessageConverterTest.cs (1)
16Assert.NotNull(typedMessageConverter);
System.Xaml.Tests (4)
System\Windows\Markup\ValueSerializerTests.cs (4)
129Assert.NotNull(ValueSerializer.GetSerializerFor(type)); 130Assert.NotNull(ValueSerializer.GetSerializerFor(type, null)); 275Assert.NotNull(ValueSerializer.GetSerializerFor(descriptor)); 276Assert.NotNull(ValueSerializer.GetSerializerFor(descriptor, null));
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
255Assert.NotNull(file); 339Assert.NotNull(projectFile);
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
255Assert.NotNull(file); 339Assert.NotNull(projectFile);
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
255Assert.NotNull(file); 339Assert.NotNull(projectFile);
Templates.Mvc.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
255Assert.NotNull(file); 339Assert.NotNull(projectFile);
Templates.Tests (2)
src\ProjectTemplates\Shared\Project.cs (2)
255Assert.NotNull(file); 339Assert.NotNull(projectFile);