187 references to NotNull
IdeBenchmarks (1)
Lsp\LspCompletionBenchmarks.cs (1)
105Assert.NotNull(results.ItemDefaults?.EditRange);
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
2128Assert.NotNull(remotePort);
Microsoft.AspNetCore.Authentication.Test (2)
CookieTests.cs (2)
1014Assert.NotNull(lastValidateIssuedDate); 1015Assert.NotNull(lastExpiresDate);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
FormMapping\Converters\NullableConverterTests.cs (2)
163Assert.NotNull(result); 178Assert.NotNull(result);
Microsoft.AspNetCore.Components.Web.Tests (7)
Forms\InputDateTest.cs (1)
49Assert.NotNull(inputSelectComponent.Element);
Forms\InputHiddenTest.cs (1)
23Assert.NotNull(inputHiddenComponent.Element);
Forms\InputNumberTest.cs (1)
64Assert.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);
Microsoft.AspNetCore.CookiePolicy.Test (11)
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.
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
XmlSerializerOutputFormatterTest.cs (1)
414Assert.NotNull(outputFormatterContext.HttpContext.Response.ContentLength);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
TempDataInCookiesTest.cs (2)
103Assert.NotNull(setCookieHeaderValue.Expires); 159Assert.NotNull(setCookieHeader.Expires);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonOutputFormatterTest.cs (1)
397Assert.NotNull(outputFormatterContext.HttpContext.Response.ContentLength);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
289Assert.NotNull(cookie.Expires);
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheTests.cs (1)
1007Assert.NotNull(len);
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
763Assert.NotNull(response.Content.Headers.LastModified);
Microsoft.AspNetCore.StaticFiles.Tests (1)
CacheHeaderTests.cs (1)
170Assert.NotNull(response.Content.Headers.LastModified);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
5607Assert.NotNull(parsedArgs.CompilationOptions.DelaySign); 5612Assert.NotNull(parsedArgs.CompilationOptions.DelaySign); 5617Assert.NotNull(parsedArgs.CompilationOptions.DelaySign);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
RefReadonlyParameterTests.cs (1)
7239Assert.NotNull(validInCSharp12);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\LambdaUtilitiesTests.cs (1)
40Assert.NotNull(span);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
CodeLens\AbstractCodeLensTest.cs (1)
37Assert.NotNull(result);
GoToAdjacentMember\AbstractGoToAdjacentMemberTests.cs (1)
49Assert.NotNull(targetPosition);
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
48Assert.NotNull(result);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\PatternMatcherTests.cs (1)
205Assert.NotNull(match);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
CodeActions\CodeActionsTests.cs (2)
174Assert.NotNull(data!.NestedCodeActions); 227Assert.NotNull(data!.NestedCodeActions);
Completion\CompletionFeaturesTests.cs (5)
129Assert.NotNull(completionResult.ItemDefaults.EditRange); 216Assert.NotNull(completionResult.ItemDefaults.EditRange); 280Assert.NotNull(completionResult.ItemDefaults.EditRange); 541Assert.NotNull(completionResult.ItemDefaults.EditRange); 710Assert.NotNull(completionResult.ItemDefaults.EditRange);
Completion\CompletionResolveTests.cs (3)
119Assert.NotNull(results.TextEdit); 168Assert.NotNull(results.TextEdit); 388Assert.NotNull(results.TextEdit);
Completion\CompletionTests.cs (3)
188Assert.NotNull(results.ItemDefaults.EditRange); 223Assert.NotNull(results.ItemDefaults.EditRange); 263Assert.NotNull(results.ItemDefaults.EditRange);
InlayHint\CSharpInlayHintTests.cs (1)
146Assert.NotNull(firstResolvedHint?.ToolTip);
MapCode\MapCodeTests.cs (1)
105Assert.NotNull(results.DocumentChanges);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
2321Assert.NotNull(projectOptions);
Microsoft.DotNet.XUnitAssert.Tests (2)
NullAssertsTests.cs (2)
20 var result = Assert.NotNull(x); 40 var ex = Record.Exception(() => Assert.NotNull(value));
Microsoft.Extensions.AI.Abstractions.Tests (3)
ChatCompletion\ChatResponseFormatTests.cs (2)
109Assert.NotNull(format.Schema); 125Assert.NotNull(format.Schema);
Utilities\AIJsonSchemaTransformCacheTests.cs (1)
67Assert.NotNull(transformedSchema);
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
AzureAIInferenceEmbeddingGeneratorTests.cs (2)
120Assert.NotNull(e.CreatedAt); 183Assert.NotNull(e.CreatedAt);
AzureAIInferenceImageEmbeddingGeneratorTests.cs (2)
123Assert.NotNull(e.CreatedAt); 190Assert.NotNull(e.CreatedAt);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (5)
CacheEntryTests.cs (4)
29Assert.NotNull(deserialized); 49Assert.NotNull(deserialized); 70Assert.NotNull(deserialized); 91Assert.NotNull(deserialized);
ScenarioRunResultTests.cs (1)
192Assert.NotNull(deserialized);
Microsoft.Extensions.AI.Integration.Tests (4)
EmbeddingGeneratorIntegrationTests.cs (4)
53Assert.NotNull(embeddings.Usage.InputTokenCount); 54Assert.NotNull(embeddings.Usage.TotalTokenCount); 73Assert.NotNull(embeddings.Usage.InputTokenCount); 74Assert.NotNull(embeddings.Usage.TotalTokenCount);
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIEmbeddingGeneratorTests.cs (2)
144Assert.NotNull(e.CreatedAt); 213Assert.NotNull(e.CreatedAt);
OpenAIResponseClientIntegrationTests.cs (2)
61Assert.NotNull(region.StartIndex); 62Assert.NotNull(region.EndIndex);
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (2)
37Assert.NotNull(responseFormat.Schema); 374Assert.NotNull(responseFormat.Schema);
Functions\AIFunctionFactoryTest.cs (1)
301Assert.NotNull(result);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
RedisTests.cs (1)
88Assert.NotNull(ttl);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Windows\WindowsContainerSnapshotProviderTests.cs (5)
368Assert.NotNull(metricCollector.LastMeasurement?.Value); 428Assert.NotNull(processMetricCollector.LastMeasurement?.Value); 429Assert.NotNull(containerLimitMetricCollector.LastMeasurement?.Value); 430Assert.NotNull(containerUsageMetricCollector.LastMeasurement?.Value); 503Assert.NotNull(metricCollector.LastMeasurement?.Value);
Microsoft.Gen.Logging.Unit.Tests (6)
TypeSymbolExtensionsTests.cs (6)
51Assert.NotNull(symbolHolder); 95Assert.NotNull(symbolHolder); 139Assert.NotNull(symbolHolder); 187Assert.NotNull(symbolHolder); 230Assert.NotNull(symbolHolder); 274Assert.NotNull(symbolHolder);
Microsoft.ML.AutoML.Tests (1)
TransformInferenceTests.cs (1)
785Assert.NotNull(featuresCol);
Microsoft.ML.Core.Tests (63)
UnitTests\TestEntryPoints.cs (63)
746Assert.NotNull(loadedData.Schema.GetColumnOrNull("FeatureName")); 747Assert.NotNull(loadedData.Schema.GetColumnOrNull("AreaUnderRocCurve")); 748Assert.NotNull(loadedData.Schema.GetColumnOrNull("Accuracy")); 749Assert.NotNull(loadedData.Schema.GetColumnOrNull("PositivePrecision")); 750Assert.NotNull(loadedData.Schema.GetColumnOrNull("PositiveRecall")); 751Assert.NotNull(loadedData.Schema.GetColumnOrNull("NegativePrecision")); 752Assert.NotNull(loadedData.Schema.GetColumnOrNull("NegativeRecall")); 753Assert.NotNull(loadedData.Schema.GetColumnOrNull("F1Score")); 754Assert.NotNull(loadedData.Schema.GetColumnOrNull("AreaUnderPrecisionRecallCurve")); 755Assert.NotNull(loadedData.Schema.GetColumnOrNull("AreaUnderRocCurveStdErr")); 756Assert.NotNull(loadedData.Schema.GetColumnOrNull("AccuracyStdErr")); 757Assert.NotNull(loadedData.Schema.GetColumnOrNull("PositivePrecisionStdErr")); 758Assert.NotNull(loadedData.Schema.GetColumnOrNull("PositiveRecallStdErr")); 759Assert.NotNull(loadedData.Schema.GetColumnOrNull("NegativePrecisionStdErr")); 760Assert.NotNull(loadedData.Schema.GetColumnOrNull("NegativeRecallStdErr")); 761Assert.NotNull(loadedData.Schema.GetColumnOrNull("F1ScoreStdErr")); 762Assert.NotNull(loadedData.Schema.GetColumnOrNull("AreaUnderPrecisionRecallCurveStdErr")); 894Assert.NotNull(loadedData.Schema.GetColumnOrNull("FeatureName")); 895Assert.NotNull(loadedData.Schema.GetColumnOrNull("MacroAccuracy")); 896Assert.NotNull(loadedData.Schema.GetColumnOrNull("MicroAccuracy")); 897Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLoss")); 898Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossReduction")); 899Assert.NotNull(loadedData.Schema.GetColumnOrNull("TopKAccuracy")); 900Assert.NotNull(loadedData.Schema.GetColumnOrNull("PerClassLogLoss")); 901Assert.NotNull(loadedData.Schema.GetColumnOrNull("MacroAccuracyStdErr")); 902Assert.NotNull(loadedData.Schema.GetColumnOrNull("MicroAccuracyStdErr")); 903Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossStdErr")); 904Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossReductionStdErr")); 905Assert.NotNull(loadedData.Schema.GetColumnOrNull("TopKAccuracyStdErr")); 906Assert.NotNull(loadedData.Schema.GetColumnOrNull("PerClassLogLossStdErr")); 1055Assert.NotNull(loadedData.Schema.GetColumnOrNull("FeatureName")); 1056Assert.NotNull(loadedData.Schema.GetColumnOrNull("MacroAccuracy")); 1057Assert.NotNull(loadedData.Schema.GetColumnOrNull("MicroAccuracy")); 1058Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLoss")); 1059Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossReduction")); 1060Assert.NotNull(loadedData.Schema.GetColumnOrNull("TopKAccuracy")); 1061Assert.NotNull(loadedData.Schema.GetColumnOrNull("PerClassLogLoss")); 1062Assert.NotNull(loadedData.Schema.GetColumnOrNull("MacroAccuracyStdErr")); 1063Assert.NotNull(loadedData.Schema.GetColumnOrNull("MicroAccuracyStdErr")); 1064Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossStdErr")); 1065Assert.NotNull(loadedData.Schema.GetColumnOrNull("LogLossReductionStdErr")); 1066Assert.NotNull(loadedData.Schema.GetColumnOrNull("TopKAccuracyStdErr")); 1067Assert.NotNull(loadedData.Schema.GetColumnOrNull("PerClassLogLossStdErr")); 1198Assert.NotNull(loadedData.Schema.GetColumnOrNull("FeatureName")); 1199Assert.NotNull(loadedData.Schema.GetColumnOrNull("MeanAbsoluteError")); 1200Assert.NotNull(loadedData.Schema.GetColumnOrNull("MeanSquaredError")); 1201Assert.NotNull(loadedData.Schema.GetColumnOrNull("RootMeanSquaredError")); 1202Assert.NotNull(loadedData.Schema.GetColumnOrNull("LossFunction")); 1203Assert.NotNull(loadedData.Schema.GetColumnOrNull("RSquared")); 1204Assert.NotNull(loadedData.Schema.GetColumnOrNull("MeanAbsoluteErrorStdErr")); 1205Assert.NotNull(loadedData.Schema.GetColumnOrNull("MeanSquaredErrorStdErr")); 1206Assert.NotNull(loadedData.Schema.GetColumnOrNull("RootMeanSquaredErrorStdErr")); 1207Assert.NotNull(loadedData.Schema.GetColumnOrNull("LossFunctionStdErr")); 1208Assert.NotNull(loadedData.Schema.GetColumnOrNull("RSquaredStdErr")); 1345Assert.NotNull(loadedData.Schema.GetColumnOrNull("FeatureName")); 1346Assert.NotNull(loadedData.Schema.GetColumnOrNull("DiscountedCumulativeGains")); 1347Assert.NotNull(loadedData.Schema.GetColumnOrNull("NormalizedDiscountedCumulativeGains")); 1348Assert.NotNull(loadedData.Schema.GetColumnOrNull("DiscountedCumulativeGainsStdErr")); 1349Assert.NotNull(loadedData.Schema.GetColumnOrNull("NormalizedDiscountedCumulativeGainsStdErr")); 1442Assert.NotNull(loadedData.Schema.GetColumnOrNull("PredictedLabel")); 1443Assert.NotNull(loadedData.Schema.GetColumnOrNull("Score")); 2781Assert.NotNull(loader.Schema.GetColumnOrNull("GroupId")); 2782Assert.NotNull(loader.Schema.GetColumnOrNull("Label"));
Microsoft.ML.IntegrationTests (5)
IntrospectiveTraining.cs (1)
317Assert.NotNull(column);
ModelFiles.cs (4)
404Assert.NotNull(expectedSchema.GetColumnOrNull("Label")); 405Assert.NotNull(expectedSchema.GetColumnOrNull("Features")); 433Assert.NotNull(expectedInputSchema.GetColumnOrNull("Label")); 434Assert.NotNull(expectedInputSchema.GetColumnOrNull("Features"));
Microsoft.ML.Tests (12)
Scenarios\Api\Estimators\PredictAndMetadata.cs (1)
92Assert.NotNull(scoredData.Schema["Score"].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames));
Scenarios\Api\TestApi.cs (2)
486Assert.NotNull(split.TrainSet.Schema.GetColumnOrNull("KeyStrat")); // Check that the key column used as SamplingKeyColumn wasn't deleted by the split 508Assert.NotNull(split.TrainSet.Schema.GetColumnOrNull(colname));
TextLoaderTests.cs (8)
598Assert.NotNull(data.Schema.GetColumnOrNull("Label")); 599Assert.NotNull(data.Schema.GetColumnOrNull("Features")); 602Assert.NotNull(data2.Schema.GetColumnOrNull("String1")); 603Assert.NotNull(data2.Schema.GetColumnOrNull("Number1")); 613Assert.NotNull(data.Schema.GetColumnOrNull("Label")); 614Assert.NotNull(data.Schema.GetColumnOrNull("Workclass")); 615Assert.NotNull(data.Schema.GetColumnOrNull("Categories")); 616Assert.NotNull(data.Schema.GetColumnOrNull("NumericFeatures"));
Transformers\TextFeaturizerTests.cs (1)
664Assert.NotNull(featureColumn);
Microsoft.Net.Http.Headers.Tests (1)
SetCookieHeaderValueTest.cs (1)
513Assert.NotNull(parsedValue!.MaxAge);
Mvc.Api.Analyzers.Test (9)
ActualApiResponseMetadataFactoryTest.cs (9)
100Assert.NotNull(metadata); 114Assert.NotNull(metadata); 128Assert.NotNull(metadata); 142Assert.NotNull(metadata); 156Assert.NotNull(metadata); 170Assert.NotNull(metadata); 184Assert.NotNull(metadata); 213Assert.NotNull(metadata); 269Assert.NotNull(metadata);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
732Assert.NotNull(beforeAbort); 733Assert.NotNull(afterAbort);