151 references to RootElement
Aspire.Hosting.PostgreSQL.Tests (1)
dotnet-openapi (1)
dotnet-user-jwts (2)
JwtBearerSample (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (18)
ClaimActionTests.cs (7)
20action.Run(userData.RootElement, identity, "iss");
34action.Run(userData.RootElement, identity, "iss");
52action.Run(userData.RootElement, identity, "iss");
66action.Run(userData.RootElement, identity, "iss");
83action.Run(userData.RootElement, identity, "iss");
100action.Run(userData.RootElement, identity, "iss");
115action.Run(userData.RootElement, identity, "iss");
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (47)
ServerStreamingServerCallHandlerTests.cs (10)
68Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
75Assert.Equal("Hello TestName! 2", responseJson2.RootElement.GetProperty("message").GetString());
112Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
116Assert.Equal("Exception was thrown by handler.", responseJson2.RootElement.GetProperty("message").GetString());
117Assert.Equal(2, responseJson2.RootElement.GetProperty("code").GetInt32());
154Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
158Assert.Equal("Detail!", responseJson2.RootElement.GetProperty("message").GetString());
159Assert.Equal((int)StatusCode.Aborted, responseJson2.RootElement.GetProperty("code").GetInt32());
195Assert.Equal("Exception was thrown by handler. Exception: Exception!", responseJson.RootElement.GetProperty("message").GetString());
196Assert.Equal(2, responseJson.RootElement.GetProperty("code").GetInt32());
UnaryServerCallHandlerTests.cs (35)
82Assert.Equal("Hello TestName!", responseJson.RootElement.GetProperty("message").GetString());
120Assert.Equal(name, responseJson.RootElement.GetString());
180Assert.Equal(JsonValueKind.Array, responseJson.RootElement.ValueKind);
181Assert.Equal("One", responseJson.RootElement[0].GetString());
182Assert.Equal("Two", responseJson.RootElement[1].GetString());
183Assert.Equal("", responseJson.RootElement[2].GetString());
717Assert.Equal("", responseJson.RootElement.GetProperty("message").GetString());
749Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
750Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
787Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
788Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
817Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
818Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
841Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
842Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
866Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
867Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
933Assert.Equal(123, responseJson.RootElement.GetProperty("code").GetInt32());
934Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
936var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray();
1011Assert.Equal(123, responseJson.RootElement.GetProperty("code").GetInt32());
1012Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
1014var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray();
1053Assert.Equal("Exception was thrown by handler.", responseJson.RootElement.GetProperty("message").GetString());
1054Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1083Assert.Equal("Exception was thrown by handler. InvalidOperationException: Error!", responseJson.RootElement.GetProperty("message").GetString());
1084Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1112Assert.Equal(@"Detail!", responseJson.RootElement.GetProperty("message").GetString());
1113Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
1155Assert.Equal(@"Hello World!", responseJson.RootElement.GetProperty("message").GetString());
1209Assert.Equal($"Hello {requestContent.Length}!", responseJson.RootElement.GetProperty("message").GetString());
1236Assert.Equal("Unable to deserialize null to Int32Value.", responseJson.RootElement.GetProperty("message").GetString());
1475Assert.Equal("Exception was thrown by handler.", responseJson.RootElement.GetProperty("message").GetString());
1476Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1737var anyMessage = responseJson.RootElement.GetProperty("anyMessage");
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.Build (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Ollama (2)
Microsoft.Extensions.AI.OpenAI (3)
Microsoft.Extensions.Configuration.Json (3)
Microsoft.JSInterop.Tests (1)
Negotiate.Client (2)
OpenIdConnectSample (4)
Shared.Tests (2)
SocialSample (8)
System.Text.Json (10)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)