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)
10505Assert.False(comp.HasLocalsInit("C.M_skip", realIL: true)); 10507Assert.False(comp.HasLocalsInit("C.M_skip", realIL: false)); 10539Assert.False(comp.HasLocalsInit("C.M")); 10572Assert.False(comp.HasLocalsInit("C.M")); 10605Assert.False(comp.HasLocalsInit("C.M")); 10634Assert.False(verifier.HasLocalsInit("C.M1", realIL: true)); 10638Assert.False(verifier.HasLocalsInit("C.M3", realIL: true)); 10822Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); 10852Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_0")); 10912Assert.False(comp.HasLocalsInit("C.<M>g__F|0_0")); // F 10913Assert.False(comp.HasLocalsInit("C.<M>g__FF|0_2")); // FF 10914Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_3")); // FL 10915Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_1")); // L 10916Assert.False(comp.HasLocalsInit("C.<M>g__LF|0_4")); // LF 10917Assert.False(comp.HasLocalsInit("C.<>c.<M>b__0_5")); // LL 10959Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute 11000Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute 11001Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda 11041Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute 11042Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute 11043Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_2")); // lambda 11085Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_2")); // localWithAttribute 11126Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_1")); // localWithAttribute 11127Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute 11167Assert.False(verifier.HasLocalsInit("C.<M>g__localWithAttribute|0_0")); // localWithAttribute 11168Assert.False(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda 11169Assert.False(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_2")); // localNoAttribute 11218Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); 11219Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); 11259Assert.False(verifier.HasLocalsInit("C.PropWithAttribute.get")); 11260Assert.False(verifier.HasLocalsInit("C.<get_PropWithAttribute>g__local1|1_0")); 11308Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); 11309Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|1_0")); 11349Assert.False(verifier.HasLocalsInit("C.EventWithAttribute.add")); 11350Assert.False(verifier.HasLocalsInit("C.<add_EventWithAttribute>g__local1|0_0")); 11377Assert.False(verifier.HasLocalsInit("C.M")); 11378Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); 11406Assert.False(verifier.HasLocalsInit("C.M")); 11407Assert.False(verifier.HasLocalsInit("C.<M>g__local|0_0")); 11519Assert.False(verifier.HasLocalsInit("<top-level-statements-entry-point>")); 11520Assert.False(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); 11578Assert.False(comp.HasLocalsInit("C.M1")); 11618Assert.False(comp1.HasLocalsInit("C.M1")); 11655Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.IEnumerator.MoveNext")); 11657Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 11703Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.IEnumerator.MoveNext")); 11704Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 11737Assert.False(comp.HasLocalsInit("C.<M_skip>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11774Assert.False(comp.HasLocalsInit("C.<<M>g__F|0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11805Assert.False(comp.HasLocalsInit("C.<>c.<<M>b__0_0>d.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11859Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); 11860Assert.False(comp_skip.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); 11975Assert.False(comp.HasLocalsInit("C_skip.M")); 12026Assert.False(comp.HasLocalsInit("C.P_skip.get")); 12028Assert.False(comp.HasLocalsInit("C.P_skip.set")); 12098Assert.False(comp.HasLocalsInit("C.P1.get")); 12101Assert.False(comp.HasLocalsInit("C.P2.set")); 12102Assert.False(comp.HasLocalsInit("C.P3.get")); 12103Assert.False(comp.HasLocalsInit("C.P3.set")); 12133Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.IEnumerator.MoveNext")); 12134Assert.False(comp.HasLocalsInit("C.<get_P>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 12206Assert.False(comp.HasLocalsInit("C.P1.get")); 12207Assert.False(comp.HasLocalsInit("C.P1.set")); 12208Assert.False(comp.HasLocalsInit("C.P2.get")); 12209Assert.False(comp.HasLocalsInit("C.P2.set")); 12210Assert.False(comp.HasLocalsInit("C.P3.get")); 12211Assert.False(comp.HasLocalsInit("C.P3.set")); 12268Assert.False(comp.HasLocalsInit("C_skip.P.get")); 12270Assert.False(comp.HasLocalsInit("C_skip.P.set")); 12461Assert.False(comp.HasLocalsInit("C_skip.P.get")); 12463Assert.False(comp.HasLocalsInit("C_skip.P.set")); 12465Assert.False(comp.HasLocalsInit("C_skip.M")); 12467Assert.False(comp.HasLocalsInit("C_skip.C2.M2")); 12470Assert.False(comp.HasLocalsInit("C_skip.E.add")); 12471Assert.False(comp.HasLocalsInit("C_skip.E.remove")); 12510Assert.False(comp.HasLocalsInit("C.C2.M2")); 12511Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); 12565Assert.False(comp.HasLocalsInit("C.C2.P2.get")); 12566Assert.False(comp.HasLocalsInit("C.C2.P2.set")); 12567Assert.False(comp.HasLocalsInit("C.C2.M2")); 12568Assert.False(comp.HasLocalsInit("C.C2.C3.M3")); 12623Assert.False(comp.HasLocalsInit("C.P.get")); 12624Assert.False(comp.HasLocalsInit("C.P.set")); 12625Assert.False(comp.HasLocalsInit("C.M")); 12626Assert.False(comp.HasLocalsInit("C.C2.M2")); 12671Assert.False(comp.HasLocalsInit("C_skip.C.M")); 12699Assert.False(comp.HasLocalsInit("C.M")); 12727Assert.False(comp.HasLocalsInit("C.Main")); 12755Assert.False(comp.HasLocalsInit("C.M")); 12854Assert.False(verifier.HasLocalsInit("I.M")); 12855Assert.False(verifier.HasLocalsInit("I.C2.M2")); 12856Assert.False(verifier.HasLocalsInit("I.P.get")); 12857Assert.False(verifier.HasLocalsInit("I.P.set")); 12960Assert.False(verifier.HasLocalsInit("A.M1")); 12979Assert.False(verifier.HasLocalsInit("C.Finalize")); 12998Assert.False(verifier.HasLocalsInit("C..ctor")); 13034Assert.False(verifier.HasLocalsInit("ClassWithAttributeWithLocal..ctor")); 13154Assert.False(verifier.HasLocalsInit("C.M"));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
748Assert.False(comp.Options.DelaySign);
Semantics\ExtensionTests.cs (2)
50145Assert.False(verifier.HasLocalsInit("E.get_P")); 50168Assert.False(verifier.HasLocalsInit("E.M"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (96)
Semantics\NullableReferenceTypesTests.cs (95)
97749Assert.False(t1.ReferenceTypeConstraintIsNullable); 97800Assert.False(t1.ReferenceTypeConstraintIsNullable); 97860Assert.False(t1.ReferenceTypeConstraintIsNullable); 98526Assert.False(t11.ReferenceTypeConstraintIsNullable); 98717Assert.False(t11.ReferenceTypeConstraintIsNullable); 98824Assert.False(t11.ReferenceTypeConstraintIsNullable); 98890Assert.False(t11.ReferenceTypeConstraintIsNullable); 98963Assert.False(t11.ReferenceTypeConstraintIsNullable); 99031Assert.False(t11.ReferenceTypeConstraintIsNullable); 99405Assert.False(t11.ReferenceTypeConstraintIsNullable); 100196Assert.False(t22.IsNotNullable); 100200Assert.False(t33.IsNotNullable); 100231Assert.False(t22.IsNotNullable); 100235Assert.False(t33.IsNotNullable); 100482Assert.False(t1.IsNotNullable); 100489Assert.False(t2.IsNotNullable); 100724Assert.False(t1.IsNotNullable); 100804Assert.False(tf1.IsNotNullable); 100897Assert.False(tf1.IsNotNullable); 100982Assert.False(tf1.IsNotNullable); 101168Assert.False(tf1.IsNotNullable); 101250Assert.False(tf1.IsNotNullable); 102228Assert.False(tf1.IsNotNullable); 102259Assert.False(tf1.IsNotNullable); 102297Assert.False(tf1.IsNotNullable); 102332Assert.False(tf1.IsNotNullable); 102371Assert.False(tf1.IsNotNullable); 102531Assert.False(tf1.IsNotNullable); 102559Assert.False(tf1.IsNotNullable); 102780Assert.False(tf1.IsNotNullable); 102811Assert.False(tf1.IsNotNullable); 102847Assert.False(tf1.IsNotNullable); 102881Assert.False(tf1.IsNotNullable); 102919Assert.False(tf1.IsNotNullable); 103074Assert.False(tf1.IsNotNullable); 103101Assert.False(tf1.IsNotNullable); 103174Assert.False(tf1.IsNotNullable); 103217Assert.False(tf1.IsNotNullable); 103261Assert.False(tf1.IsNotNullable); 103386Assert.False(tf1.IsNotNullable); 103515Assert.False(tf1.IsNotNullable); 103546Assert.False(tf1.IsNotNullable); 103572Assert.False(tf1.IsNotNullable); 103599Assert.False(tf1.IsNotNullable); 103630Assert.False(tf1.IsNotNullable); 103653Assert.False(tf1.IsNotNullable); 103677Assert.False(tf1.IsNotNullable); 103680Assert.False(tf2.IsNotNullable); 103710Assert.False(tf1.IsNotNullable); 103734Assert.False(tf1.IsNotNullable); 103759Assert.False(tf1.IsNotNullable); 103762Assert.False(tf2.IsNotNullable); 103795Assert.False(tf1.IsNotNullable); 103822Assert.False(tf1.IsNotNullable); 103850Assert.False(tf1.IsNotNullable); 103853Assert.False(tf2.IsNotNullable); 103884Assert.False(tf1.IsNotNullable); 103910Assert.False(tf1.IsNotNullable); 103937Assert.False(tf1.IsNotNullable); 103968Assert.False(tf1.IsNotNullable); 103991Assert.False(tf1.IsNotNullable); 104015Assert.False(tf1.IsNotNullable); 104018Assert.False(tf2.IsNotNullable); 104051Assert.False(tf1.IsNotNullable); 104078Assert.False(tf1.IsNotNullable); 104106Assert.False(tf1.IsNotNullable); 104109Assert.False(tf2.IsNotNullable); 104140Assert.False(tf1.IsNotNullable); 104165Assert.False(tf1.IsNotNullable); 104191Assert.False(tf1.IsNotNullable); 104194Assert.False(tf2.IsNotNullable); 104262Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104284Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104309Assert.False(m1.TypeParameters[0].IsNotNullable); 104330Assert.False(m1.TypeParameters[0].IsNotNullable); 104380Assert.False(m1.TypeParameters[0].IsNotNullable); 104436Assert.False(m1.TypeParameters[0].IsNotNullable); 104469Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104524Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104618Assert.False(m1.TypeParameters[0].IsNotNullable); 104646Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104696Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104753Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 104784Assert.False(m1.TypeParameters[0].IsNotNullable); 104838Assert.False(m1.TypeParameters[0].IsNotNullable); 104908Assert.False(t11.ReferenceTypeConstraintIsNullable); 104921Assert.False(t1.ReferenceTypeConstraintIsNullable); 105012Assert.False(t11.ReferenceTypeConstraintIsNullable); 105089Assert.False(t11.ReferenceTypeConstraintIsNullable); 106318Assert.False(m1.TypeParameters[0].IsNotNullable); 107162Assert.False(m7.TypeParameters[0].IsNotNullable); 107730Assert.False(m1.TypeParameters[0].IsNotNullable); 137212Assert.False(t.ReferenceTypeConstraintIsNullable); 137235Assert.False(t.ReferenceTypeConstraintIsNullable); 137331Assert.False(t.ReferenceTypeConstraintIsNullable);
Semantics\TopLevelStatementsTests.cs (1)
6298Assert.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)
190Assert.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);