Base:
169 references to ToString
Aspire.Dashboard.Tests (3)
Integration\OtlpGrpcServiceTests.cs (2)
175await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout(); 218await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout();
Integration\StartupTests.cs (1)
521await File.WriteAllTextAsync(configFilePath, configJson.ToString()).DefaultTimeout();
Aspire.Hosting (1)
Devcontainers\DevcontainerSettingsWriter.cs (1)
67settingsContent = settings.ToString();
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\AzureProvisioner.cs (1)
243await File.WriteAllTextAsync(userSecretsPath, userSecrets.ToString(), cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (2)
68resource.Outputs[item.Key] = item.Value?.Prop("value").ToString(); 312resource.Outputs[item.Key] = item.Value?.Prop("value").ToString();
Aspire.Hosting.Azure.Tests (83)
AzureBicepProvisionerTests.cs (8)
27Assert.Equal("david", parameters["name"]?["value"]?.ToString()); 63Assert.Equal("john", parameters["name"]?["value"]?.ToString()); 65Assert.Equal(["a", "b", "c"], parameters["values"]?["value"]?.AsArray()?.Select(v => v?.ToString()) ?? []); 66Assert.Equal("connection string", parameters["conn"]?["value"]?.ToString()); 67Assert.Equal("value", parameters["jsonObj"]?["value"]?["key"]?.ToString()); 68Assert.Equal("paramValue", parameters["param"]?["value"]?.ToString()); 69Assert.Equal("paramValue/1", parameters["expr"]?["value"]?.ToString()); 70Assert.Equal("http://localhost:1023", parameters["endpoint"]?["value"]?.ToString());
AzureBicepResourceTests.cs (51)
267Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 361Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 454Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 520Assert.Equal(expectedManifest, appInsightsManifest.ManifestNode.ToString()); 574Assert.Equal(expectedManifest, appInsightsManifest.ManifestNode.ToString()); 643Assert.Equal(expectedManifest, appInsightsManifest.ManifestNode.ToString()); 691Assert.Equal(expectedManifest, appInsightsManifest.ManifestNode.ToString()); 750Assert.Equal("azure.bicep.v0", manifest["type"]?.ToString()); 751Assert.Equal("infrastructure1.module.bicep", manifest["path"]?.ToString()); 790Assert.Equal(expectedManifest, manifest.ToString()); 829Assert.Equal(expectedManifest, manifest.ToString()); 859Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 920Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 982Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1044Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1127Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1220Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1309Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1427Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1534Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1559Assert.Equal(expectedManifest, manifest.ToString()); 1579Assert.Equal(expectedManifest, manifest.ToString()); 1598Assert.Equal(expectedManifest, manifest.ToString()); 1650Assert.Equal(expected, manifest.ManifestNode.ToString()); 1741Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1808Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 1925Assert.Equal(expectedStorageManifest, storageManifest.ManifestNode.ToString()); 2014Assert.Equal(expectedBlobManifest, blobManifest.ToString()); 2029Assert.Equal(expectedQueueManifest, queueManifest.ToString()); 2044Assert.Equal(expectedTableManifest, tableManifest.ToString()); 2084Assert.Equal(expectedStorageManifest, storageManifest.ManifestNode.ToString()); 2173Assert.Equal(expectedBlobManifest, blobManifest.ToString()); 2188Assert.Equal(expectedQueueManifest, queueManifest.ToString()); 2203Assert.Equal(expectedTableManifest, tableManifest.ToString()); 2242Assert.Equal(expectedStorageManifest, storageManifest.ManifestNode.ToString()); 2331Assert.Equal(expectedBlobManifest, blobManifest.ToString()); 2346Assert.Equal(expectedQueueManifest, queueManifest.ToString()); 2361Assert.Equal(expectedTableManifest, tableManifest.ToString()); 2401Assert.Equal(expectedStorageManifest, storageManifest.ManifestNode.ToString()); 2490Assert.Equal(expectedBlobManifest, blobManifest.ToString()); 2505Assert.Equal(expectedQueueManifest, queueManifest.ToString()); 2520Assert.Equal(expectedTableManifest, tableManifest.ToString()); 2564Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 2632Assert.Equal("{ai.value}", aiManifest["connectionString"]?.ToString()); 2633Assert.Equal("parameter.v0", aiManifest["type"]?.ToString()); 2636Assert.Equal("{servicebus.value}", serviceBusManifest["connectionString"]?.ToString()); 2637Assert.Equal("parameter.v0", serviceBusManifest["type"]?.ToString()); 2640Assert.Equal("{ai.connectionString}", serviceManifest["env"]?["APPLICATIONINSIGHTS_CONNECTION_STRING"]?.ToString()); 2641Assert.Equal("{servicebus.connectionString}", serviceManifest["env"]?["ConnectionStrings__servicebus"]?.ToString()); 2685Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 2858Assert.Equal(expectedManifest, manifest.ToString());
AzureContainerAppsTests.cs (13)
45var m = manifest.ToString(); 141var m = manifest.ToString(); 245var m = manifest.ToString(); 389var m = manifest.ToString(); 530var m = manifest.ToString(); 785var m = manifest.ToString(); 883var m = manifest.ToString(); 995var m = manifest.ToString(); 1146var m = manifest.ToString(); 1393var m = manifest.ToString(); 1491var m = manifest.ToString(); 1596var m = manifest.ToString(); 1694var m = manifest.ToString();
AzurePostgresExtensionsTests.cs (2)
36Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 160Assert.Equal(expectedManifest, manifest.ManifestNode.ToString());
AzureProvisioningResourceExtensionsTests.cs (1)
62Assert.Equal(expectedManifest, manifest.ManifestNode.ToString());
AzureRedisExtensionsTests.cs (2)
33Assert.Equal(expectedManifest, manifest.ManifestNode.ToString()); 100Assert.Equal(expectedManifest, manifest.ManifestNode.ToString());
AzureSqlExtensionsTests.cs (1)
46Assert.Equal(expectedManifest, manifest.ManifestNode.ToString());
AzureWebPubSubExtensionsTests.cs (5)
64var manifestString = manifest.ManifestNode.ToString(); 139var manifestString = manifest.ManifestNode.ToString(); 214var manifestString = manifest.ManifestNode.ToString(); 291var manifestString = manifest.ManifestNode.ToString(); 396var manifestString = manifest.ManifestNode.ToString();
Aspire.Hosting.Containers.Tests (5)
ContainerResourceTests.cs (5)
98Assert.Equal(expectedManifest, manifest.ToString()); 131Assert.Equal(expectedManifest, manifest.ToString()); 158Assert.Equal(expectedManifest, manifest.ToString()); 219Assert.Equal(expectedManifest, manifest.ToString()); 275Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Elasticsearch.Tests (2)
AddElasticsearchTests.cs (2)
191Assert.Equal(expectedManifest, manifest.ToString()); 237Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
110Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
109Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
157Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
168Assert.Equal(expectedManifest, serverManifest.ToString()); 176Assert.Equal(expectedManifest, dbManifest.ToString());
Aspire.Hosting.MongoDB.Tests (2)
AddMongoDBTests.cs (2)
218Assert.Equal(expectedManifest, mongoManifest.ToString()); 226Assert.Equal(expectedManifest, dbManifest.ToString());
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
182Assert.Equal(expectedManifest, mySqlManifest.ToString()); 190Assert.Equal(expectedManifest, dbManifest.ToString()); 220Assert.Equal(expectedManifest, serverManifest.ToString());
Aspire.Hosting.Nats.Tests (4)
AddNatsTests.cs (4)
212Assert.Equal(expectedManifest, manifest.ToString()); 249Assert.Equal(expectedManifest, manifest.ToString()); 276Assert.Equal(expectedManifest, manifest.ToString()); 303Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.NodeJs.Tests (2)
AddNodeAppTests.cs (2)
44Assert.Equal(expectedManifest, manifest.ToString()); 74Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
223Assert.Equal(expectedManifest, serverManifest.ToString()); 231Assert.Equal(expectedManifest, dbManifest.ToString()); 261Assert.Equal(expectedManifest, serverManifest.ToString());
Aspire.Hosting.PostgreSQL.Tests (5)
AddPostgresTests.cs (5)
275Assert.Equal(expectedManifest, serverManifest.ToString()); 283Assert.Equal(expectedManifest, dbManifest.ToString()); 318Assert.Equal(expectedManifest, serverManifest.ToString()); 344Assert.Equal(expectedManifest, serverManifest.ToString()); 370Assert.Equal(expectedManifest, serverManifest.ToString());
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
237Assert.Equal(expectedManifest, serverManifest.ToString()); 275Assert.Equal(expectedManifest, serverManifest.ToString());
Aspire.Hosting.RabbitMQ.Tests (4)
AddRabbitMQTests.cs (4)
239Assert.Equal(expectedManifest, manifest.ToString()); 272Assert.Equal(expectedManifest, manifest.ToString()); 296Assert.Equal(expectedManifest, manifest.ToString()); 320Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
119Assert.Equal(expectedManifest, manifest.ToString());
Aspire.Hosting.SqlServer.Tests (3)
AddSqlServerTests.cs (3)
154Assert.Equal(expectedManifest, serverManifest.ToString()); 162Assert.Equal(expectedManifest, dbManifest.ToString()); 194Assert.Equal(expectedManifest, serverManifest.ToString());
Aspire.Hosting.Tests (27)
AddParameterTests.cs (4)
163Assert.Equal(expectedManifest, paramManifest.ToString()); 216Assert.Equal(expectedManifest, paramManifest.ToString()); 276Assert.Equal(expectedManifest, paramManifest.ToString()); 326Assert.Equal(expectedManifest, paramManifest.ToString());
ExecutableResourceTests.cs (1)
71Assert.Equal(expectedManifest, manifest.ToString());
KestrelConfigTests.cs (4)
207Assert.Equal(expectedManifest, manifest.ToString()); 274Assert.Equal(expectedManifest, manifest.ToString()); 305Assert.Equal(expectedEnv, manifest["env"]!.ToString()); 345Assert.Equal(expectedBindings, manifest!["bindings"]!.ToString());
ManifestGenerationTests.cs (2)
107Assert.Equal(expectedManifest, redisManifest.ToString()); 538Assert.Equal(expectedManifest, manifest.ToString());
ProjectResourceTests.cs (2)
512Assert.Equal(expectedManifest, manifest.ToString()); 563Assert.Equal(expectedManifest, manifest.ToString());
PublishAsConnectionStringTests.cs (1)
38var actual = manifest.ToString();
PublishAsDockerfileTests.cs (3)
36var actual = manifest.ToString(); 78var actual = manifest.ToString(); 112var actual = manifest.ToString();
Utils\ManifestUtils.cs (1)
78if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path)))
WithEndpointTests.cs (9)
290Assert.Equal(expectedManifest, manifest.ToString()); 317Assert.Equal(expectedManifest, manifest.ToString()); 344Assert.Equal(expectedManifest, manifest.ToString()); 371Assert.Equal(expectedManifest, manifest.ToString()); 398Assert.Equal(expectedManifest, manifest.ToString()); 425Assert.Equal(expectedManifest, manifest.ToString()); 452Assert.Equal(expectedManifest, manifest.ToString()); 514Assert.Equal(expectedManifest, manifest.ToString()); 550Assert.Equal(expectedEnv, manifest["env"]!.ToString());
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
110Assert.Equal(expectedManifest, manifest.ToString());
Microsoft.Build.BuildCheck.UnitTests (3)
EndToEndTests.cs (3)
140o => o.Value?["locale"]?.ToString().Equals(culture, StringComparison.Ordinal) ?? false); 143$"Resource for culture {culture} was {(isResourceExpected ? "not " : "")}found in deps.json:{Environment.NewLine}{output.DepsJsonResources.ToString()}"); 148$"Unexpected resource for culture {culture} was found in deps.json:{Environment.NewLine}{output.DepsJsonResources.ToString()}");
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolPromotionHelper.cs (2)
152Content = new StringContent(payload.ToString(), Encoding.UTF8, "application/json") 269Content = new StringContent(extensionPayload.ToString(), Encoding.UTF8, "application/json")
Roslyn.VisualStudio.Next.UnitTests (4)
UnifiedSettings\UnifiedSettingsTests.cs (4)
140await VerifyTagAsync(jsonDocument.ToString(), "Roslyn.VisualStudio.Next.UnitTests.csharpPackageRegistration.pkgdef"); 154await VerifyTagAsync(jsonDocument!.ToString(), "Roslyn.VisualStudio.Next.UnitTests.csharpPackageRegistration.pkgdef"); 242await VerifyTagAsync(jsonDocument.ToString(), "Roslyn.VisualStudio.Next.UnitTests.visualBasicPackageRegistration.pkgdef"); 256await VerifyTagAsync(jsonDocument!.ToString(), "Roslyn.VisualStudio.Next.UnitTests.visualBasicPackageRegistration.pkgdef");
Stress.ApiService (1)
Program.cs (1)
213}.ToString();