Base:
17 references to ToString
Aspire.Hosting.Azure (1)
AzureDeployingContext.cs (1)
542
var responseContent = response.Content.
ToString
();
Aspire.Hosting.Azure.Tests (5)
AzureServiceBusExtensionsTests.cs (2)
147
Assert.Equal("Hello, World!", message.Body.
ToString
());
827
Assert.Equal("Hello, World!", message.Body.
ToString
());
AzureStorageEmulatorFunctionalTests.cs (3)
199
Assert.Equal("testValue", downloadResult.Content.
ToString
());
244
Assert.Equal(blobNameAndContent, downloadResult.Content.
ToString
());
282
Assert.Equal(blobNameAndContent, peekMessage.Value.Body.
ToString
());
EventHubsConsumer (2)
Consumer.cs (1)
28
LogString(partition.Data.EventBody.
ToString
());
Processor.cs (1)
32
logger.LogInformation(arg.Data.EventBody.
ToString
());
Microsoft.Extensions.AI.OpenAI (3)
OpenAIChatClient.cs (1)
395
_ = (existing.Arguments ??= new()).Append(argUpdate.
ToString
());
OpenAIResponsesChatClient.cs (2)
296
yield return CreateUpdate(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.
ToString
(), fcri.CallId, fcri.FunctionName));
881
new ErrorContent(mtci.Error.
ToString
()) :
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIConversionTests.cs (6)
34
Assert.Equal("""{"type":"text"}""", ((IJsonModel<OpenAI.Chat.ChatResponseFormat>)text).Write(ModelReaderWriterOptions.Json).
ToString
());
38
Assert.Equal("""{"type":"json_object"}""", ((IJsonModel<OpenAI.Chat.ChatResponseFormat>)json).Write(ModelReaderWriterOptions.Json).
ToString
());
47
"""), RemoveWhitespace(((IJsonModel<OpenAI.Chat.ChatResponseFormat>)jsonSchema).Write(ModelReaderWriterOptions.Json).
ToString
()));
58
"""), RemoveWhitespace(((IJsonModel<OpenAI.Chat.ChatResponseFormat>)jsonSchema).Write(ModelReaderWriterOptions.Json).
ToString
()));
82
"""), RemoveWhitespace(((IJsonModel<ResponseTextFormat>)jsonSchema).Write(ModelReaderWriterOptions.Json).
ToString
()));
93
"""), RemoveWhitespace(((IJsonModel<ResponseTextFormat>)jsonSchema).Write(ModelReaderWriterOptions.Json).
ToString
()));