41 references to GetRawText
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
src\Components\Shared\src\WebRootComponentParameters.cs (2)
53if (!string.Equals(jsonValue.GetRawText(), otherJsonValue.GetRawText(), StringComparison.Ordinal))
Microsoft.AspNetCore.Components.Server (3)
Circuits\ComponentParameterDeserializer.cs (1)
66value.GetRawText(),
src\Components\Shared\src\WebRootComponentParameters.cs (2)
53if (!string.Equals(jsonValue.GetRawText(), otherJsonValue.GetRawText(), StringComparison.Ordinal))
Microsoft.AspNetCore.Components.Web (1)
WebEventData\WebEventData.cs (1)
79return (EventArgs)JsonSerializer.Deserialize(eventArgsJson.GetRawText(), eventArgsType, jsonSerializerOptions)!;
Microsoft.AspNetCore.Components.WebAssembly (3)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
61value.GetRawText(),
src\Components\Shared\src\WebRootComponentParameters.cs (2)
53if (!string.Equals(jsonValue.GetRawText(), otherJsonValue.GetRawText(), StringComparison.Ordinal))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (5)
ConverterTests\JsonElementComparer.cs (5)
45return x.GetRawText() == y.GetRawText(); 50return x.GetRawText() == y.GetRawText(); 119hash.Add(obj.GetRawText());
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
147json = data.GetRawText();
Microsoft.Extensions.AI.Abstractions.Tests (4)
AssertExtensions.cs (4)
63? $"Function result does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}" 64: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}";
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
63? $"Function result does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}" 64: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}";
Microsoft.Extensions.AI.Ollama.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
63? $"Function result does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}" 64: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}";
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAISerializationTests.cs (2)
344Assert.Equal("{}", Assert.IsType<JsonElement>(function.Metadata.ReturnParameter.Schema).GetRawText()); 350JsonObject parameterSchema = Assert.IsType<JsonObject>(JsonNode.Parse(Assert.IsType<JsonElement>(parameter.Schema).GetRawText()));
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
63? $"Function result does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}" 64: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}";
Microsoft.Extensions.AI.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
63? $"Function result does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}" 64: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedElement.GetRawText()}\r\nActual: {actualElement.GetRawText()}";
Microsoft.JSInterop.Tests (1)
Infrastructure\DotNetDispatcherTest.cs (1)
134var resultDto1 = JsonSerializer.Deserialize<TestDTO>(root[0].GetRawText(), jsRuntime.JsonSerializerOptions);
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (3)
990/// <seealso cref="GetRawText"/> 1014/// <seealso cref="GetRawText"/> 1643/// For other types, the value of <see cref="GetRawText"/>() is returned.