233 references to NotEmpty
AuthSamples.FunctionalTests (1)
TestAssert.cs (1)
43Assert.NotEmpty(elements);
IIS.FunctionalTests (8)
Http2TrailersResetTests.cs (8)
75Assert.NotEmpty(response.TrailingHeaders); 88Assert.NotEmpty(response.TrailingHeaders); 103Assert.NotEmpty(response.TrailingHeaders); 121Assert.NotEmpty(response.TrailingHeaders); 140Assert.NotEmpty(response.TrailingHeaders); 152Assert.NotEmpty(response.TrailingHeaders); 166Assert.NotEmpty(response.TrailingHeaders); 183Assert.NotEmpty(response.TrailingHeaders);
IISExpress.FunctionalTests (1)
InProcess\AuthenticationTests.cs (1)
65Assert.NotEmpty(responseText);
InMemory.FunctionalTests (9)
CertificateLoaderTests.cs (4)
35Assert.NotEmpty(cert.Extensions); 37Assert.NotEmpty(eku.EnhancedKeyUsages); 50Assert.NotEmpty(cert.Extensions); 52Assert.NotEmpty(eku.EnhancedKeyUsages);
HttpsConnectionMiddlewareTests.cs (5)
833Assert.NotEmpty(chain.ChainPolicy.ExtraStore); 1321Assert.NotEmpty(cert.Extensions); 1323Assert.NotEmpty(eku.EnhancedKeyUsages); 1340Assert.NotEmpty(cert.Extensions); 1342Assert.NotEmpty(eku.EnhancedKeyUsages);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
32Assert.NotEmpty(actions);
Microsoft.AspNetCore.Analyzers.Test (14)
MinimalStartupTest.cs (7)
292Assert.NotEmpty(servicesAnalysis.Services); 316Assert.NotEmpty(middlewareAnalysis.Middleware); 341Assert.NotEmpty(middlewareAnalysis.Middleware); 366Assert.NotEmpty(middlewareAnalysis.Middleware); 417Assert.NotEmpty(middlewareAnalysis.Middleware); 444Assert.NotEmpty(middlewareAnalysis.Middleware); 469Assert.NotEmpty(middlewareAnalysis.Middleware);
StartupAnalyzerTest.cs (7)
443Assert.NotEmpty(servicesAnalysis.Services); 471Assert.NotEmpty(middlewareAnalysis.Middleware); 499Assert.NotEmpty(middlewareAnalysis.Middleware); 528Assert.NotEmpty(middlewareAnalysis.Middleware); 587Assert.NotEmpty(middlewareAnalysis.Middleware); 618Assert.NotEmpty(middlewareAnalysis.Middleware); 651Assert.NotEmpty(middlewareAnalysis.Middleware);
Microsoft.AspNetCore.App.Analyzers.Test (11)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
169Assert.NotEmpty(headerDictionaryPropertyNames);
RouteEmbeddedLanguage\RoutePatternCompletionProviderTests.cs (9)
63Assert.NotEmpty(result.Completions.ItemsList); 94Assert.NotEmpty(result.Completions.ItemsList); 119Assert.NotEmpty(result.Completions.ItemsList); 148Assert.NotEmpty(result.Completions.ItemsList); 177Assert.NotEmpty(result.Completions.ItemsList); 209Assert.NotEmpty(result.Completions.ItemsList); 657Assert.NotEmpty(result.Completions.ItemsList); 679Assert.NotEmpty(result.Completions.ItemsList); 705Assert.NotEmpty(result.Completions.ItemsList);
RouteEmbeddedLanguage\RoutePatternParserTests_ComponentsTests.cs (1)
190Assert.NotEmpty(tree.Diagnostics);
Microsoft.AspNetCore.App.UnitTests (8)
SharedFxTests.cs (5)
137Assert.NotEmpty(assemblyVersion); 140Assert.NotEmpty(fileVersion); 150Assert.NotEmpty(fileVersion); 174Assert.NotEmpty(dlls); 223Assert.NotEmpty(dlls);
TargetingPackTests.cs (3)
74Assert.NotEmpty(dlls); 114Assert.NotEmpty(dlls); 195Assert.NotEmpty(dlls);
Microsoft.AspNetCore.Authentication.Test (5)
CookieTests.cs (5)
1514Assert.NotEmpty(transaction.SetCookie); 1537Assert.NotEmpty(transaction.SetCookie); 1559Assert.NotEmpty(transaction.SetCookie); 1582Assert.NotEmpty(transaction.SetCookie); 1605Assert.NotEmpty(transaction.SetCookie);
Microsoft.AspNetCore.Components.Forms.Tests (1)
EditContextDataAnnotationsExtensionsTest.cs (1)
175Assert.NotEmpty(editContext.GetValidationMessages());
Microsoft.AspNetCore.Components.Tests (3)
ComponentBaseTest.cs (1)
372Assert.NotEmpty(renderer.Batches);
RendererTest.cs (2)
5656Assert.NotEmpty(parametersSetEvent); 5663Assert.NotEmpty(parametersSetAsyncEvent);
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\InputDateTest.cs (1)
30Assert.NotEmpty(validationMessages);
Forms\InputNumberTest.cs (1)
30Assert.NotEmpty(validationMessages);
Forms\InputSelectTest.cs (1)
188Assert.NotEmpty(validationMessages);
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
76Assert.NotEmpty(children);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
CertificateManagerTests.cs (2)
363Assert.NotEmpty(httpsCertificateList); 381Assert.NotEmpty(httpsCertificateList);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ConverterTests\MessageTypeInfoResolverTests.cs (1)
50Assert.NotEmpty(typeInfo.Properties);
Microsoft.AspNetCore.Hosting.Tests (2)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
547Assert.NotEmpty(directory);
WebHostBuilderTests.cs (1)
166Assert.NotEmpty(services);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
620Assert.NotEmpty(httpContext.Items);
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
178Assert.NotEmpty(httpContext.Items);
Microsoft.AspNetCore.Http.Results.Tests (19)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
294Assert.NotEmpty(httpResponse.Headers.LastModified); 329Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
286Assert.NotEmpty(httpResponse.Headers.LastModified); 323Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
58Assert.NotEmpty(httpResponse.Headers.LastModified); 89Assert.NotEmpty(httpResponse.Headers.LastModified); 118Assert.NotEmpty(httpResponse.Headers.LastModified); 145Assert.NotEmpty(httpResponse.Headers.LastModified); 174Assert.NotEmpty(httpResponse.Headers.LastModified); 206Assert.NotEmpty(httpResponse.Headers.LastModified); 234Assert.NotEmpty(httpResponse.Headers.LastModified); 261Assert.NotEmpty(httpResponse.Headers.LastModified); 318Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
70Assert.NotEmpty(httpResponse.Headers.LastModified); 209Assert.NotEmpty(httpResponse.Headers.LastModified); 248Assert.NotEmpty(httpResponse.Headers.LastModified); 280Assert.NotEmpty(httpResponse.Headers.LastModified); 311Assert.NotEmpty(httpResponse.Headers.LastModified); 353Assert.NotEmpty(httpResponse.Headers.LastModified);
Microsoft.AspNetCore.Http.Tests (1)
Timeouts\RequestTimeoutsMiddlewareTests.cs (1)
251Assert.NotEmpty(context.Response.Headers);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\HtmlAssert.cs (1)
31Assert.NotEmpty(elements);
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
113Assert.NotEmpty(scriptTags);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
EndpointMetadataApiDescriptionProviderTest.cs (3)
603Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata); 1278Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata); 1309Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata);
Microsoft.AspNetCore.Mvc.Core.Test (41)
ApplicationModels\ActionModelTest.cs (3)
104Assert.NotEmpty((IEnumerable<object>)value1); 111Assert.NotEmpty((IDictionary<string, string>)value1); 118Assert.NotEmpty((IDictionary<object, object>)value1);
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (6)
76Assert.NotEmpty(actionModel.Filters.OfType<ModelStateInvalidFilterFactory>()); 77Assert.NotEmpty(actionModel.Filters.OfType<ClientErrorResultFilterFactory>()); 79Assert.NotEmpty(actionModel.Selectors); 119Assert.NotEmpty(actionModel.Filters.OfType<ModelStateInvalidFilterFactory>()); 120Assert.NotEmpty(actionModel.Filters.OfType<ClientErrorResultFilterFactory>()); 122Assert.NotEmpty(actionModel.Selectors);
ApplicationModels\AttributeRouteModelTests.cs (1)
36Assert.NotEmpty((IEnumerable<object>)value1);
ApplicationModels\ControllerModelTest.cs (3)
106Assert.NotEmpty((IEnumerable<object>)value1); 113Assert.NotEmpty((IDictionary<string, string>)value1); 120Assert.NotEmpty((IDictionary<object, object>)value1);
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
620Assert.NotEmpty(methods); 692Assert.NotEmpty(methods); 712Assert.NotEmpty(methods);
ApplicationModels\ParameterModelTest.cs (2)
47Assert.NotEmpty((IEnumerable<object>)value1); 54Assert.NotEmpty((IDictionary<object, object>)value1);
ApplicationModels\PropertyModelTest.cs (2)
43Assert.NotEmpty((IEnumerable<object>)value1); 50Assert.NotEmpty((IDictionary<object, object>)value1);
ModelBinding\Binders\BodyModelBinderTests.cs (2)
351Assert.NotEmpty(entry.Value.Errors[0].ErrorMessage); 422Assert.NotEmpty(entry.Value.Errors[0].ErrorMessage);
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
294Assert.NotEmpty(httpResponse.Headers.LastModified); 329Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
286Assert.NotEmpty(httpResponse.Headers.LastModified); 323Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
58Assert.NotEmpty(httpResponse.Headers.LastModified); 89Assert.NotEmpty(httpResponse.Headers.LastModified); 118Assert.NotEmpty(httpResponse.Headers.LastModified); 145Assert.NotEmpty(httpResponse.Headers.LastModified); 174Assert.NotEmpty(httpResponse.Headers.LastModified); 206Assert.NotEmpty(httpResponse.Headers.LastModified); 234Assert.NotEmpty(httpResponse.Headers.LastModified); 261Assert.NotEmpty(httpResponse.Headers.LastModified); 318Assert.NotEmpty(httpResponse.Headers.LastModified);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
70Assert.NotEmpty(httpResponse.Headers.LastModified); 209Assert.NotEmpty(httpResponse.Headers.LastModified); 248Assert.NotEmpty(httpResponse.Headers.LastModified); 280Assert.NotEmpty(httpResponse.Headers.LastModified); 311Assert.NotEmpty(httpResponse.Headers.LastModified); 353Assert.NotEmpty(httpResponse.Headers.LastModified);
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
InputFormatterTests.cs (1)
206Assert.NotEmpty(kvp.Key);
TempDataInCookiesTest.cs (1)
75Assert.NotEmpty(setCookieValues);
VersioningTestsBase.cs (4)
149Assert.NotEmpty(result.RouteValues); 176Assert.NotEmpty(result.RouteValues); 225Assert.NotEmpty(result.RouteValues); 396Assert.NotEmpty(result.RouteValues);
Microsoft.AspNetCore.Mvc.IntegrationTests (22)
BodyValidationIntegrationTests.cs (1)
645Assert.NotEmpty(error.ErrorMessage);
CollectionModelBinderIntegrationTest.cs (1)
963Assert.NotEmpty(modelState);
DictionaryModelBinderIntegrationTest.cs (20)
175Assert.NotEmpty(modelState); 212Assert.NotEmpty(modelState); 356Assert.NotEmpty(modelState); 393Assert.NotEmpty(modelState); 529Assert.NotEmpty(modelState); 567Assert.NotEmpty(modelState); 605Assert.NotEmpty(modelState); 640Assert.NotEmpty(modelState); 675Assert.NotEmpty(modelState); 727Assert.NotEmpty(modelState); 766Assert.NotEmpty(modelState); 806Assert.NotEmpty(modelState); 930Assert.NotEmpty(modelState); 964Assert.NotEmpty(modelState); 998Assert.NotEmpty(modelState); 1037Assert.NotEmpty(modelState); 1076Assert.NotEmpty(modelState); 1192Assert.NotEmpty(modelState); 1384Assert.NotEmpty(modelState); 1422Assert.NotEmpty(modelState);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonInputFormatterTest.cs (1)
340Assert.NotEmpty(modelError.ErrorMessage);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
InputTagHelperTest.cs (1)
1209Assert.NotEmpty(output.Attributes);
PersistComponentStateTagHelperTest.cs (2)
160Assert.NotEmpty(content); 213Assert.NotEmpty(content);
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheKeyProviderTests.cs (3)
343Assert.NotEmpty(cacheKey); 382Assert.NotEmpty(cacheKey); 410Assert.NotEmpty(cacheKey);
Microsoft.AspNetCore.Routing.Tests (7)
RouteTest.cs (5)
192Assert.NotEmpty(route.Constraints); 234Assert.NotEmpty(route.Constraints); 276Assert.NotEmpty(route.Constraints); 319Assert.NotEmpty(route.Constraints); 368Assert.NotEmpty(route.Constraints);
RouteValuesAddressSchemeTest.cs (2)
85Assert.NotEmpty(allMatches); 126Assert.NotEmpty(allMatches);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
ResponseTrailersTests.cs (8)
92Assert.NotEmpty(response.TrailingHeaders); 111Assert.NotEmpty(response.TrailingHeaders); 167Assert.NotEmpty(response.TrailingHeaders); 193Assert.NotEmpty(response.TrailingHeaders); 238Assert.NotEmpty(response.TrailingHeaders); 261Assert.NotEmpty(response.TrailingHeaders); 280Assert.NotEmpty(response.TrailingHeaders); 308Assert.NotEmpty(response.TrailingHeaders);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
KestrelEventSourceTests.cs (1)
27Assert.NotEmpty(EventSource.GenerateManifest(esType, "assemblyPathToIncludeInManifest"));
Microsoft.AspNetCore.Session.Tests (2)
SessionTests.cs (2)
681Assert.NotEmpty(sink.Writes); 730Assert.NotEmpty(sink.Writes);
Microsoft.Build.Engine.OM.UnitTests (27)
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
203Assert.NotEmpty(newTarget1.View.ItemGroups); 204Assert.NotEmpty(newTarget1.View.PropertyGroups);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (21)
81Assert.NotEmpty(preReal.ChooseElements); 95Assert.NotEmpty(realExtensionsList); 117Assert.NotEmpty(realImports); 130Assert.NotEmpty(realImportGroups); 143Assert.NotEmpty(realItemDefinitions); 156Assert.NotEmpty(realItemDefinitionGroups); 169Assert.NotEmpty(realItems); 182Assert.NotEmpty(realItemGroups); 195Assert.NotEmpty(realProperties); 208Assert.NotEmpty(realPropertieGroups); 221Assert.NotEmpty(realCollection); 234Assert.NotEmpty(realCollection); 247Assert.NotEmpty(realCollection); 260Assert.NotEmpty(realCollection); // to ensure we actually have some elements in test project 273Assert.NotEmpty(realCollection); // to ensure we actually have some elements in test project 287Assert.NotEmpty(realCollection); // to ensure we actually have some elements in test project 300Assert.NotEmpty(realCollection); 313Assert.NotEmpty(realCollection); 326Assert.NotEmpty(realCollection); 339Assert.NotEmpty(realCollection); 352Assert.NotEmpty(realCollection);
ObjectModelRemoting\LinkedEvaluationReadOnly_Tests.cs (4)
71Assert.NotEmpty(viewItems); 81Assert.NotEmpty(viewItemDefinitions); 91Assert.NotEmpty(viewProperties); 101Assert.NotEmpty(viewMetadata);
Microsoft.Build.Tasks.UnitTests (1)
Hash_Tests.cs (1)
42Assert.NotEmpty(emptyItemHash);
Microsoft.DotNet.XUnitAssert.Tests (3)
CollectionAssertsTests.cs (3)
1616 var ex = Record.Exception(() => Assert.NotEmpty(list)); 1630 Assert.NotEmpty(list); 1638 Assert.NotEmpty(enumerator);
Mvc.Api.Analyzers.Test (2)
AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs (1)
71Assert.NotEmpty(diagnostics);
ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs (1)
37Assert.NotEmpty(diagnostics);
Sockets.FunctionalTests (3)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
1113Assert.NotEmpty(connectionFacts); 1117Assert.NotEmpty(facts["RemotePort"].Value<string>());
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
405Assert.NotEmpty(connectionResetLogs);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
70Assert.NotEmpty(elements);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
70Assert.NotEmpty(elements);
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
70Assert.NotEmpty(elements);
Templates.Tests (1)
src\Shared\E2ETesting\WaitAssert.cs (1)
70Assert.NotEmpty(elements);
xunit.assert (1)
AsyncCollectionAsserts.cs (1)
324 NotEmpty(AssertHelper.ToEnumerable(collection));