54 references to GetBoolean
Aspire.Cli.Tests (2)
Projects\FallbackProjectParserTests.cs (2)
38Assert.True(result.RootElement.GetProperty("Fallback").GetBoolean()); 193Assert.True(result.RootElement.GetProperty("Fallback").GetBoolean());
Aspire.Hosting.Tests (1)
ManifestGenerationTests.cs (1)
72Assert.True(secret.GetBoolean());
Microsoft.AspNetCore.Components.Web (19)
JSComponents\JSComponentInterop.cs (1)
130parameterValue = parameterJsonValue.GetBoolean();
WebEventData\ChangeEventArgsReader.cs (1)
31changeArgs.Value = value.GetBoolean();
WebEventData\KeyboardEventArgsReader.cs (6)
42eventArgs.Repeat = property.Value.GetBoolean(); 46eventArgs.CtrlKey = property.Value.GetBoolean(); 50eventArgs.AltKey = property.Value.GetBoolean(); 54eventArgs.ShiftKey = property.Value.GetBoolean(); 58eventArgs.MetaKey = property.Value.GetBoolean(); 66eventArgs.IsComposing = property.Value.GetBoolean();
WebEventData\MouseEventArgsReader.cs (4)
97eventArgs.CtrlKey = property.Value.GetBoolean(); 101eventArgs.ShiftKey = property.Value.GetBoolean(); 105eventArgs.AltKey = property.Value.GetBoolean(); 109eventArgs.MetaKey = property.Value.GetBoolean();
WebEventData\PointerEventArgsReader.cs (1)
57eventArgs.IsPrimary = property.Value.GetBoolean();
WebEventData\ProgressEventArgReader.cs (1)
24eventArgs.LengthComputable = property.Value.GetBoolean();
WebEventData\TouchEventArgsReader.cs (4)
52eventArgs.CtrlKey = property.Value.GetBoolean(); 56eventArgs.ShiftKey = property.Value.GetBoolean(); 60eventArgs.AltKey = property.Value.GetBoolean(); 64eventArgs.MetaKey = property.Value.GetBoolean();
WebEventData\WebEventDescriptorReader.cs (1)
63eventFieldInfo.FieldValue = property.Value.GetBoolean();
Microsoft.AspNetCore.Components.WebView (2)
IpcReceiver.cs (2)
64OnLocationChanged(pageContext, args[0].GetString(), args[1].GetString(), args[2].GetBoolean()); 67OnLocationChanging(pageContext, args[0].GetInt32(), args[1].GetString(), args[2].GetString(), args[3].GetBoolean());
Microsoft.AspNetCore.Identity.FunctionalTests (24)
MapIdentityApiTests.cs (24)
695Assert.False(twoFactorKeyContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 696Assert.False(twoFactorKeyContent.GetProperty("isMachineRemembered").GetBoolean()); 707Assert.True(enable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 708Assert.False(enable2faContent.GetProperty("isMachineRemembered").GetBoolean()); 748Assert.True(enable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 768Assert.False(disable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 803Assert.True(enable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 807Assert.False(resetKeyContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 820Assert.True(enable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 904Assert.False(twoFactorKeyContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 905Assert.False(twoFactorKeyContent.GetProperty("isMachineRemembered").GetBoolean()); 916Assert.True(enable2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 917Assert.False(enable2faContent.GetProperty("isMachineRemembered").GetBoolean()); 928Assert.True(session2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 929Assert.False(session2faContent.GetProperty("isMachineRemembered").GetBoolean()); 937Assert.True(session2faContent2.GetProperty("isTwoFactorEnabled").GetBoolean()); 938Assert.False(session2faContent2.GetProperty("isMachineRemembered").GetBoolean()); 946Assert.True(persistent2faContent.GetProperty("isTwoFactorEnabled").GetBoolean()); 947Assert.True(persistent2faContent.GetProperty("isMachineRemembered").GetBoolean()); 1044Assert.True(infoResponse.GetProperty("isEmailConfirmed").GetBoolean()); 1062Assert.True(infoPostContent.GetProperty("isEmailConfirmed").GetBoolean()); 1104Assert.True(infoAfterFinalLogin.GetProperty("isEmailConfirmed").GetBoolean()); 1255Assert.False(infoPostContent.GetProperty("isEmailConfirmed").GetBoolean()); 1274Assert.True(infoGetContent.GetProperty("isEmailConfirmed").GetBoolean());
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
46Assert.True(((JsonElement)endpointFilterCalled).GetBoolean());
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
36deserializedValue = item.Value.GetBoolean();
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
82bool booleanValue = labelElement.GetBoolean();
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
878Assert.True(((JsonElement)deserializedArgs["boolean"]!).GetBoolean());
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
986bpeOptions.FuseUnknownTokens = fuseUnknownTokensElement.GetBoolean();
System.Text.Json (1)
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
187value = (TypeToConvert)(object)Value.GetBoolean();