222 references to RootElement
aspire (8)
Aspire.Cli.Tests (4)
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (5)
Aspire.Hosting (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Seq.Tests (1)
Aspire.Hosting.Tests (13)
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)
69Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
76Assert.Equal("Hello TestName! 2", responseJson2.RootElement.GetProperty("message").GetString());
113Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
117Assert.Equal("Exception was thrown by handler.", responseJson2.RootElement.GetProperty("message").GetString());
118Assert.Equal(2, responseJson2.RootElement.GetProperty("code").GetInt32());
155Assert.Equal("Hello TestName! 1", responseJson1.RootElement.GetProperty("message").GetString());
159Assert.Equal("Detail!", responseJson2.RootElement.GetProperty("message").GetString());
160Assert.Equal((int)StatusCode.Aborted, responseJson2.RootElement.GetProperty("code").GetInt32());
196Assert.Equal("Exception was thrown by handler. Exception: Exception!", responseJson.RootElement.GetProperty("message").GetString());
197Assert.Equal(2, responseJson.RootElement.GetProperty("code").GetInt32());
UnaryServerCallHandlerTests.cs (35)
83Assert.Equal("Hello TestName!", responseJson.RootElement.GetProperty("message").GetString());
121Assert.Equal(name, responseJson.RootElement.GetString());
181Assert.Equal(JsonValueKind.Array, responseJson.RootElement.ValueKind);
182Assert.Equal("One", responseJson.RootElement[0].GetString());
183Assert.Equal("Two", responseJson.RootElement[1].GetString());
184Assert.Equal("", responseJson.RootElement[2].GetString());
718Assert.Equal("", responseJson.RootElement.GetProperty("message").GetString());
750Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
751Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
788Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
789Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
818Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
819Assert.Equal((int)StatusCode.InvalidArgument, responseJson.RootElement.GetProperty("code").GetInt32());
842Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
843Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
867Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
868Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
934Assert.Equal(123, responseJson.RootElement.GetProperty("code").GetInt32());
935Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
937var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray();
1012Assert.Equal(123, responseJson.RootElement.GetProperty("code").GetInt32());
1013Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
1015var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray();
1054Assert.Equal("Exception was thrown by handler.", responseJson.RootElement.GetProperty("message").GetString());
1055Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1084Assert.Equal("Exception was thrown by handler. InvalidOperationException: Error!", responseJson.RootElement.GetProperty("message").GetString());
1085Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1113Assert.Equal(@"Detail!", responseJson.RootElement.GetProperty("message").GetString());
1114Assert.Equal((int)StatusCode.Unauthenticated, responseJson.RootElement.GetProperty("code").GetInt32());
1156Assert.Equal(@"Hello World!", responseJson.RootElement.GetProperty("message").GetString());
1210Assert.Equal($"Hello {requestContent.Length}!", responseJson.RootElement.GetProperty("message").GetString());
1237Assert.Equal("Unable to deserialize null to Int32Value.", responseJson.RootElement.GetProperty("message").GetString());
1476Assert.Equal("Exception was thrown by handler.", responseJson.RootElement.GetProperty("message").GetString());
1477Assert.Equal((int)StatusCode.Unknown, responseJson.RootElement.GetProperty("code").GetInt32());
1738var anyMessage = responseJson.RootElement.GetProperty("anyMessage");
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions.Tests (25)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
Microsoft.Extensions.AI.Evaluation.Safety (5)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (7)
Microsoft.Extensions.Configuration.Json (3)
Microsoft.JSInterop.Tests (1)
Microsoft.ML.Tokenizers.Tests (1)
Negotiate.Client (2)
OpenIdConnectSample (4)
Shared.Tests (2)
SocialSample (8)
System.Text.Json (15)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)