114 references to GetBoolean
aspire (1)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1482? property.GetBoolean()
Aspire.Cli.Tests (5)
Acquisition\InstallSidecarWriterTests.cs (1)
43Assert.True(document.RootElement.GetProperty("futureField").GetProperty("enabled").GetBoolean());
Commands\AgentMcpCommandTests.cs (1)
195Assert.False(schema.GetProperty("additionalProperties").GetBoolean());
Commands\SdkDumpCommandTests.cs (1)
386Assert.True(exportedValue.GetProperty("Type").GetProperty("IsNullable").GetBoolean());
Mcp\ListIntegrationsToolTests.cs (1)
44Assert.False(additionalPropsElement.GetBoolean());
Projects\DotNetBasedAppHostServerScaffoldCacheTests.cs (1)
167Assert.True(settings.RootElement.GetProperty("ASPIRE_INTEGRATION_HOSTS_ENABLED").GetBoolean());
Aspire.Dashboard (1)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1482? property.GetBoolean()
Aspire.Dashboard.Playwright.Tests (3)
Integration\Playwright\AccessibilityTests.cs (2)
713Assert.True(root.GetProperty("focusWithin").GetBoolean(), $"Expected {await host.EvaluateAsync<string>("element => element.localName")} to contain delegated focus."); 716$"Expected a visible focus indicator on the {partName} part, but got border width {borderWidth}px, color {borderColor}, scale {indicatorScale}, host :focus-visible={root.GetProperty("focusVisible").GetBoolean()}.");
Integration\Playwright\AppBarTests.cs (1)
110Assert.True(root.GetProperty("sameRow").GetBoolean());
Aspire.Dashboard.Tests (18)
Model\DashboardDataSourceTests.cs (6)
257Assert.True(metadata.RootElement.GetProperty("IsPinned").GetBoolean()); 780Assert.True(updatedMetadata.RootElement.GetProperty("IsPinned").GetBoolean()); 819Assert.True(updatedMetadata.RootElement.GetProperty("IsPinned").GetBoolean()); 821Assert.True(futureMetadata.GetProperty("Enabled").GetBoolean()); 1042Assert.True(metadata.RootElement.GetProperty("IsPinned").GetBoolean()); 1217Assert.True(metadata.RootElement.GetProperty("IsPinned").GetBoolean());
Terminal\TerminalWebSocketTests.cs (12)
76Assert.True(detailsResult.GetProperty("success").GetBoolean()); 84Assert.True(jumped.GetProperty("history").GetProperty("markerResult").GetProperty("success").GetBoolean()); 101await ReadUntilAsync(browser, frame => frame.GetProperty("peer").GetProperty("isPrimary").GetBoolean(), timeout.Token); 149var primary = await ReadUntilAsync(first, frame => frame.GetProperty("peer").GetProperty("isPrimary").GetBoolean(), timeout.Token); 156Assert.False(viewer.GetProperty("peer").GetProperty("isPrimary").GetBoolean()); 162var takeover = await ReadUntilAsync(second, frame => frame.GetProperty("peer").GetProperty("isPrimary").GetBoolean(), timeout.Token); 508var readOnly = await ReadUntilAsync(browser, frame => frame.GetProperty("full").GetBoolean(), timeout.Token); 511Assert.False(readOnly.GetProperty("peer").GetProperty("isPrimary").GetBoolean()); 515var primary = await ReadUntilAsync(browser, frame => frame.GetProperty("peer").GetProperty("isPrimary").GetBoolean(), timeout.Token); 550var primary = await ReadUntilAsync(interactive, frame => frame.GetProperty("peer").GetProperty("isPrimary").GetBoolean(), timeout.Token); 556var unchanged = await ReadUntilAsync(readOnly, frame => frame.GetProperty("full").GetBoolean(), timeout.Token); 559Assert.False(unchanged.GetProperty("peer").GetProperty("isPrimary").GetBoolean());
Aspire.Deployment.EndToEnd.Tests (5)
AcaExpressDeploymentTests.cs (2)
272Assert.True(ingress.GetProperty("external").GetBoolean()); 273Assert.False(ingress.GetProperty("allowInsecure").GetBoolean());
AzureEntraIdDeploymentTests.cs (2)
140Assert.True(ingress.GetProperty("external").GetBoolean()); 141Assert.False(ingress.GetProperty("allowInsecure").GetBoolean());
AzureEntraIdStarterDeploymentTests.cs (1)
111Assert.True(scope.GetProperty("isEnabled").GetBoolean());
Aspire.Hosting.Azure.Tests (7)
AzureSandboxesTests.cs (7)
1729Assert.False(root.GetProperty("sourcesRef").GetProperty("diskImage").GetProperty("isPublic").GetBoolean()); 1798Assert.False(root.GetProperty("autoSuspendPolicy").GetProperty("enabled").GetBoolean()); 1801Assert.True(root.GetProperty("autoDeletePolicy").GetProperty("enabled").GetBoolean()); 1852Assert.True(root.GetProperty("auth").GetProperty("anonymous").GetBoolean()); 1898Assert.False(auth.GetProperty("anonymous").GetBoolean()); 1900Assert.True(entraId.GetProperty("enabled").GetBoolean()); 1956Assert.True(entraId.GetProperty("enabled").GetBoolean());
Aspire.Hosting.Browsers.Tests (1)
BrowserLogsCdpConnectionTests.cs (1)
328? fromSurfaceElement.GetBoolean()
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
275Assert.True(exportedMember.GetProperty("experimental").GetBoolean()); 330Assert.True(exportedMember.GetProperty("experimental").GetBoolean());
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
713var applied = migration.TryGetProperty("applied", out var appliedProp) && appliedProp.GetBoolean();
Aspire.Hosting.Foundry (1)
FoundryLocalService.cs (1)
616cached = cachedProperty.GetBoolean();
Aspire.Hosting.Go.Tests (4)
GoRunDebuggingTests.cs (4)
455expectedDwarf = nativeDocument.RootElement.GetProperty("dwarf").GetBoolean(); 459Assert.Equal(expectedDwarf.Value, document.RootElement.GetProperty("dwarf").GetBoolean()); 460Assert.Equal(expectedSymbols, document.RootElement.GetProperty("symbols").GetBoolean()); 461Assert.Equal(expectedTagged, document.RootElement.GetProperty("tagged").GetBoolean());
Aspire.Hosting.Native.Core.Tests (7)
NativeIpcSecurityTests.cs (6)
201Assert.Equal(!container, result.GetProperty("ambient").GetBoolean()); 202Assert.Equal(!container, result.GetProperty("prefix").GetBoolean()); 203Assert.Equal(!container, result.GetProperty("parameter").GetBoolean()); 204Assert.True(result.GetProperty("declared").GetBoolean()); 205Assert.Equal(explicitRuntimeSetting, result.GetProperty("explicitRuntimeSetting").GetBoolean()); 206Assert.True(result.GetProperty("path").GetBoolean());
NativeProductCliTests.cs (1)
72Assert.True(state.GetProperty("started").GetBoolean());
Aspire.Hosting.Native.Server (1)
Auxiliary\NativeAuxiliaryBackchannel.cs (1)
136Follow = legacyLogs.Length > 1 && legacyLogs[1].GetBoolean(),
Aspire.Hosting.Tests (2)
Dcp\DcpExecutorTests.cs (1)
7231Assert.True(projectLaunchConfiguration.GetProperty("disable_launch_profile").GetBoolean());
ManifestGenerationTests.cs (1)
71Assert.True(secret.GetBoolean());
dotnet-aot (1)
parent\dotnet\ToolManifest\JsonElementExtension.cs (1)
67value = jsonValue.GetBoolean();
Infrastructure.Tests (6)
TestTriggerMap\SelectTestsCliTests.cs (5)
634Assert.False(root.GetProperty("selectsAll").GetBoolean()); 677Assert.False(selection.GetProperty("selectsAll").GetBoolean()); 1035Assert.True(doc.RootElement.GetProperty("run_extension_e2e").GetBoolean()); 1036Assert.False(doc.RootElement.GetProperty("run_group_job").GetBoolean()); 1247Assert.True(root.GetProperty("selectsAll").GetBoolean());
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
100Assert.False(selection.RootElement.GetProperty("run_prodjob").GetBoolean());
Microsoft.AspNetCore.Components.Web (19)
JSComponents\JSComponentInterop.cs (1)
135parameterValue = 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.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
36deserializedValue = item.Value.GetBoolean();
Microsoft.Deployment.DotNet.Releases (2)
Product.cs (1)
165LatestReleaseIncludesSecurityUpdate = productElement.GetProperty("security").GetBoolean();
ProductRelease.cs (1)
141IsSecurityUpdate = element.GetProperty("security").GetBoolean();
Microsoft.DotNet.Cli.InternalMicrosoft (2)
Providers\MacPlatformSsoDetectionProvider.cs (1)
195value = property.GetBoolean();
Providers\VisualStudioAccountDetectionProvider.cs (1)
293? property.GetBoolean()
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
ScenarioRunResultTests.cs (1)
274Assert.True(contents[2].GetProperty("informationalOnly").GetBoolean());
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
82bool booleanValue = labelElement.GetBoolean();
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
1612Assert.True(((JsonElement)deserializedArgs["boolean"]!).GetBoolean());
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
1230addDummyPrefix = addPrefixElement.GetBoolean();
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
986bpeOptions.FuseUnknownTokens = fuseUnknownTokensElement.GetBoolean();
Microsoft.NET.Build.Containers (4)
LocalDaemons\ContainerRuntimes.cs (2)
183!secure.GetBoolean() && 198insecure.GetBoolean() &&
LocalDaemons\DockerCli.cs (2)
252&& !secure.GetBoolean() 268&& insecure.GetBoolean()
Microsoft.NET.ProjectData (1)
ProjectDataBuildAttemptManifest.cs (1)
247 element.GetBoolean();
Microsoft.NET.ProjectData.Generators (1)
DataModelSchemaGenerator.cs (1)
428 return value.GetBoolean();
Microsoft.NET.ProjectData.Tasks (3)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildAttemptManifest.cs (1)
247 element.GetBoolean();
ValidateProjectDataPackagesTask.cs (2)
497 return pinningEnabled.GetBoolean(); 698 value = property.GetBoolean();
Microsoft.TestPlatform.CommunicationUtilities (6)
Serialization\TestExecutionContextConverter.cs (4)
33context.InIsolation = isolation.GetBoolean(); 35context.KeepAlive = keepAlive.GetBoolean(); 37context.AreTestCaseLevelEventsRequired = tcEvents.GetBoolean(); 39context.IsDebug = isDebug.GetBoolean();
Serialization\TestRunCompleteEventArgsConverter.cs (2)
35var isCanceled = root.TryGetProperty("IsCanceled", out var ic) && ic.GetBoolean(); 36var isAborted = root.TryGetProperty("IsAborted", out var ia) && ia.GetBoolean();
rzc (1)
Json\JsonDataReader.cs (1)
55=> _currentValue.GetBoolean();
System.Text.Json (1)
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
187value = (TypeToConvert)(object)Value.GetBoolean();