245 references to False
InMemory.FunctionalTests (2)
Http2\Http2TestBase.cs (1)
354Assert.False(context.Request.CanHaveBody());
KestrelMetricsTests.cs (1)
157Assert.False(hasConnectionMetricsTagsFeature);
InProcessWebSite (1)
Startup.cs (1)
1620Assert.False(httpContext.Request.CanHaveBody());
Microsoft.Analyzers.Local.Tests (7)
Json\JsonValueTest.cs (7)
243Assert.False((bool?)new JsonValue(false)); 244Assert.False((bool?)new JsonValue(0.0)); 245Assert.False((bool?)new JsonValue(string.Empty)); 248Assert.False((bool?)new JsonValue(1.0)); 249Assert.False((bool?)new JsonValue("text")); 250Assert.False((bool?)new JsonValue(new JsonObject())); 251Assert.False((bool?)new JsonValue(new JsonArray()));
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationPropertiesTests.cs (2)
232Assert.False(props.AllowRefresh); 295Assert.False(props.GetBool("foo"));
Microsoft.AspNetCore.Authentication.Test (1)
OAuthChallengePropertiesTest.cs (1)
143Assert.False(properties.IncludeGrantedScopes);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitClientProxyTest.cs (1)
30Assert.False(isCancelled);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ApiVisibilityConventionTest.cs (1)
36Assert.False(action.ApiExplorer.IsVisible);
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (1)
100Assert.False(context.ValidationMetadata.HasValidators);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsMetadataProviderTest.cs (1)
182Assert.False(context.BindingMetadata.IsReadOnly);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ValidationIntegrationTests.cs (2)
2050Assert.False(modelMetadata.HasValidators); 2338Assert.False(modelMetadata.HasValidators);
ValidationWithRecordIntegrationTests.cs (2)
1841Assert.False(modelMetadata.HasValidators); 2129Assert.False(modelMetadata.HasValidators);
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageTest.cs (1)
534Assert.False(actual);
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (1)
761Assert.False(property.Value.Type?.HasFlag(JsonSchemaType.Null));
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
1003Assert.All(document.Components.Schemas.Values, item => Assert.False(item.Type?.HasFlag(JsonSchemaType.Null)));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Http2Tests.cs (2)
36Assert.False(httpContext.Request.CanHaveBody()); 118Assert.False(httpContext.Request.CanHaveBody());
RequestTests.cs (1)
41Assert.False(httpContext.Request.CanHaveBody());
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
150Assert.False(context.Request.CanHaveBody()); 331Assert.False(preHasStarted);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenLocalFunctionTests.cs (1)
5853Assert.False(importData.BestFitMapping);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (101)
Attributes\AttributeTests_WellKnownAttributes.cs (98)
10545Assert.False(comp.HasLocalsInit("C.M_skip", realIL: true)); 10547Assert.False(comp.HasLocalsInit("C.M_skip", realIL: false)); 10579Assert.False(comp.HasLocalsInit("C.M")); 10612Assert.False(comp.HasLocalsInit("C.M")); 10645Assert.False(comp.HasLocalsInit("C.M")); 10674Assert.False(verifier.HasLocalsInit("C.M1", realIL: true)); 10678Assert.False(verifier.HasLocalsInit("C.M3", realIL: true)); 10862Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); 10892Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_0")); 10952Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); // F 10953Assert.False(comp.HasLocalsInit("C.<M>g__FF|0_2")); // FF 10954Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_3")); // FL 10955Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_1")); // L 10956Assert.False(comp.HasLocalsInit("C.<M>g__LF|0_4")); // LF 10957Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_5")); // LL 10999Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute 11040Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute 11041Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda 11081Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute 11082Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute 11083Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda 11125Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute 11166Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute 11167Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute 11207Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute 11208Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda 11209Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute 11258Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); 11259Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); 11299Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); 11300Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); 11348Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); 11349Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|1_0")); 11389Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); 11390Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|0_0")); 11417Assert.False(verifier.HasLocalsInit("C.M")); 11418Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); 11446Assert.False(verifier.HasLocalsInit("C.M")); 11447Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); 11559Assert.False(verifier.HasLocalsInit("<top-level-statements-entry-point>")); 11560Assert.False(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); 11618Assert.False(comp.HasLocalsInit("C.M1")); 11658Assert.False(comp1.HasLocalsInit("C.M1")); 11695Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.MoveNext")); 11697Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 11743Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.IEnumerator.MoveNext")); 11744Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 11777Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11814Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11845Assert.False(comp.HasLocalsInit("C.<>c.<<M>b__0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11899Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); 11900Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); 12015Assert.False(comp.HasLocalsInit("C_skip.M")); 12066Assert.False(comp.HasLocalsInit("C.P_skip.get")); 12068Assert.False(comp.HasLocalsInit("C.P_skip.set")); 12138Assert.False(comp.HasLocalsInit("C.P1.get")); 12141Assert.False(comp.HasLocalsInit("C.P2.set")); 12142Assert.False(comp.HasLocalsInit("C.P3.get")); 12143Assert.False(comp.HasLocalsInit("C.P3.set")); 12173Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.IEnumerator.MoveNext")); 12174Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 12246Assert.False(comp.HasLocalsInit("C.P1.get")); 12247Assert.False(comp.HasLocalsInit("C.P1.set")); 12248Assert.False(comp.HasLocalsInit("C.P2.get")); 12249Assert.False(comp.HasLocalsInit("C.P2.set")); 12250Assert.False(comp.HasLocalsInit("C.P3.get")); 12251Assert.False(comp.HasLocalsInit("C.P3.set")); 12308Assert.False(comp.HasLocalsInit("C_skip.P.get")); 12310Assert.False(comp.HasLocalsInit("C_skip.P.set")); 12501Assert.False(comp.HasLocalsInit("C_skip.P.get")); 12503Assert.False(comp.HasLocalsInit("C_skip.P.set")); 12505Assert.False(comp.HasLocalsInit("C_skip.M")); 12507Assert.False(comp.HasLocalsInit("C_skip.C2.M2")); 12510Assert.False(comp.HasLocalsInit("C_skip.E.add")); 12511Assert.False(comp.HasLocalsInit("C_skip.E.remove")); 12550Assert.False(comp.HasLocalsInit("C.C2.M2")); 12551Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); 12605Assert.False(comp.HasLocalsInit("C.C2.P2.get")); 12606Assert.False(comp.HasLocalsInit("C.C2.P2.set")); 12607Assert.False(comp.HasLocalsInit("C.C2.M2")); 12608Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); 12663Assert.False(comp.HasLocalsInit("C.P.get")); 12664Assert.False(comp.HasLocalsInit("C.P.set")); 12665Assert.False(comp.HasLocalsInit("C.M")); 12666Assert.False(comp.HasLocalsInit("C.C2.M2")); 12711Assert.False(comp.HasLocalsInit("C_skip.C.M")); 12739Assert.False(comp.HasLocalsInit("C.M")); 12767Assert.False(comp.HasLocalsInit("C.Main")); 12795Assert.False(comp.HasLocalsInit("C.M")); 12894Assert.False(verifier.HasLocalsInit("I.M")); 12895Assert.False(verifier.HasLocalsInit("I.C2.M2")); 12896Assert.False(verifier.HasLocalsInit("I.P.get")); 12897Assert.False(verifier.HasLocalsInit("I.P.set")); 13000Assert.False(verifier.HasLocalsInit("A.M1")); 13019Assert.False(verifier.HasLocalsInit("C.Finalize")); 13038Assert.False(verifier.HasLocalsInit("C..ctor")); 13074Assert.False(verifier.HasLocalsInit("ClassWithAttributeWithLocal..ctor")); 13194Assert.False(verifier.HasLocalsInit("C.M"));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
748Assert.False(comp.Options.DelaySign);
Semantics\ExtensionTests.cs (2)
50795Assert.False(verifier.HasLocalsInit("E.get_P")); 50818Assert.False(verifier.HasLocalsInit("E.M"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (96)
Semantics\NullableReferenceTypesTests.cs (95)
97775Assert.False(t1.ReferenceTypeConstraintIsNullable); 97826Assert.False(t1.ReferenceTypeConstraintIsNullable); 97886Assert.False(t1.ReferenceTypeConstraintIsNullable); 98552Assert.False(t11.ReferenceTypeConstraintIsNullable); 98743Assert.False(t11.ReferenceTypeConstraintIsNullable); 98850Assert.False(t11.ReferenceTypeConstraintIsNullable); 98916Assert.False(t11.ReferenceTypeConstraintIsNullable); 98989Assert.False(t11.ReferenceTypeConstraintIsNullable); 99057Assert.False(t11.ReferenceTypeConstraintIsNullable); 99431Assert.False(t11.ReferenceTypeConstraintIsNullable); 100222Assert.False(t22.IsNotNullable); 100226Assert.False(t33.IsNotNullable); 100257Assert.False(t22.IsNotNullable); 100261Assert.False(t33.IsNotNullable); 100508Assert.False(t1.IsNotNullable); 100515Assert.False(t2.IsNotNullable); 100750Assert.False(t1.IsNotNullable); 100830Assert.False(tf1.IsNotNullable); 100923Assert.False(tf1.IsNotNullable); 101008Assert.False(tf1.IsNotNullable); 101194Assert.False(tf1.IsNotNullable); 101276Assert.False(tf1.IsNotNullable); 102254Assert.False(tf1.IsNotNullable); 102285Assert.False(tf1.IsNotNullable); 102323Assert.False(tf1.IsNotNullable); 102358Assert.False(tf1.IsNotNullable); 102397Assert.False(tf1.IsNotNullable); 102557Assert.False(tf1.IsNotNullable); 102585Assert.False(tf1.IsNotNullable); 102806Assert.False(tf1.IsNotNullable); 102837Assert.False(tf1.IsNotNullable); 102873Assert.False(tf1.IsNotNullable); 102907Assert.False(tf1.IsNotNullable); 102945Assert.False(tf1.IsNotNullable); 103100Assert.False(tf1.IsNotNullable); 103127Assert.False(tf1.IsNotNullable); 103200Assert.False(tf1.IsNotNullable); 103243Assert.False(tf1.IsNotNullable); 103287Assert.False(tf1.IsNotNullable); 103412Assert.False(tf1.IsNotNullable); 103541Assert.False(tf1.IsNotNullable); 103572Assert.False(tf1.IsNotNullable); 103598Assert.False(tf1.IsNotNullable); 103625Assert.False(tf1.IsNotNullable); 103656Assert.False(tf1.IsNotNullable); 103679Assert.False(tf1.IsNotNullable); 103703Assert.False(tf1.IsNotNullable); 103706Assert.False(tf2.IsNotNullable); 103736Assert.False(tf1.IsNotNullable); 103760Assert.False(tf1.IsNotNullable); 103785Assert.False(tf1.IsNotNullable); 103788Assert.False(tf2.IsNotNullable); 103821Assert.False(tf1.IsNotNullable); 103848Assert.False(tf1.IsNotNullable); 103876Assert.False(tf1.IsNotNullable); 103879Assert.False(tf2.IsNotNullable); 103910Assert.False(tf1.IsNotNullable); 103936Assert.False(tf1.IsNotNullable); 103963Assert.False(tf1.IsNotNullable); 103994Assert.False(tf1.IsNotNullable); 104017Assert.False(tf1.IsNotNullable); 104041Assert.False(tf1.IsNotNullable); 104044Assert.False(tf2.IsNotNullable); 104077Assert.False(tf1.IsNotNullable); 104104Assert.False(tf1.IsNotNullable); 104132Assert.False(tf1.IsNotNullable); 104135Assert.False(tf2.IsNotNullable); 104166Assert.False(tf1.IsNotNullable); 104191Assert.False(tf1.IsNotNullable); 104217Assert.False(tf1.IsNotNullable); 104220Assert.False(tf2.IsNotNullable); 104288Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104310Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104335Assert.False(m1.TypeParameters[0].IsNotNullable); 104356Assert.False(m1.TypeParameters[0].IsNotNullable); 104406Assert.False(m1.TypeParameters[0].IsNotNullable); 104462Assert.False(m1.TypeParameters[0].IsNotNullable); 104495Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104550Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104644Assert.False(m1.TypeParameters[0].IsNotNullable); 104672Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104722Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104779Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104810Assert.False(m1.TypeParameters[0].IsNotNullable); 104864Assert.False(m1.TypeParameters[0].IsNotNullable); 104934Assert.False(t11.ReferenceTypeConstraintIsNullable); 104947Assert.False(t1.ReferenceTypeConstraintIsNullable); 105038Assert.False(t11.ReferenceTypeConstraintIsNullable); 105115Assert.False(t11.ReferenceTypeConstraintIsNullable); 106344Assert.False(m1.TypeParameters[0].IsNotNullable); 107188Assert.False(m7.TypeParameters[0].IsNotNullable); 107756Assert.False(m1.TypeParameters[0].IsNotNullable); 137238Assert.False(t.ReferenceTypeConstraintIsNullable); 137261Assert.False(t.ReferenceTypeConstraintIsNullable); 137357Assert.False(t.ReferenceTypeConstraintIsNullable);
Semantics\TopLevelStatementsTests.cs (1)
6297Assert.False(importData.BestFitMapping);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\DocumentOptionSetTests.cs (5)
136Assert.False((bool?)set.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInAccessors))); 137Assert.False((bool?)set.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInAnonymousMethods))); 138Assert.False((bool?)set.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInProperties))); 144Assert.False((bool?)updatedSet.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInAccessors))); 145Assert.False((bool?)updatedSet.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInAnonymousMethods)));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
232Assert.False((bool?)optionSet.GetOption(falseKey)); 251Assert.False(isOptionSet);
Microsoft.Data.Analysis.Tests (5)
DataFrameTests.BinaryOperations.cs (4)
229Assert.False(equalsResult[4]); 233Assert.False(equalsToScalarResult[1]); 236Assert.False(notEqualsResult[0]); 240Assert.False(notEqualsToScalarResult[0]);
DataFrameTests.cs (1)
940Assert.False(bigInts[i]);
Microsoft.DotNet.XUnitAssert.Tests (1)
BooleanAssertsTests.cs (1)
32 var ex = Record.Exception(() => Assert.False(null));
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatOptionsTests.cs (1)
204Assert.False(deserialized.AllowMultipleToolCalls);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
ChatTurnDetailsTests.cs (1)
225Assert.False(details.CacheHit);
Microsoft.ML.AutoML.Tests (2)
DatasetDimensionsTests.cs (2)
57Assert.False(dimensions[0].HasMissing); 88Assert.False(dimensions[0].HasMissing);
System.ServiceModel.Federation.Tests (1)
WSTrustChannelSecurityTokenProviderTest.cs (1)
72Assert.False(ctype.IsOptional);