243 references to GetString
Aspire.Hosting.PostgreSQL.Tests (14)
AddPostgresTests.cs (14)
476Assert.Equal(pg1.Resource.Name, servers.GetProperty("1").GetProperty("Name").GetString());
477Assert.Equal("Servers", servers.GetProperty("1").GetProperty("Group").GetString());
478Assert.Equal("mypostgres1", servers.GetProperty("1").GetProperty("Host").GetString());
480Assert.Equal("postgres", servers.GetProperty("1").GetProperty("Username").GetString());
481Assert.Equal("prefer", servers.GetProperty("1").GetProperty("SSLMode").GetString());
482Assert.Equal("postgres", servers.GetProperty("1").GetProperty("MaintenanceDB").GetString());
483Assert.Equal($"echo '{pg1.Resource.PasswordParameter.Value}'", servers.GetProperty("1").GetProperty("PasswordExecCommand").GetString());
486Assert.Equal(pg2.Resource.Name, servers.GetProperty("2").GetProperty("Name").GetString());
487Assert.Equal("Servers", servers.GetProperty("2").GetProperty("Group").GetString());
488Assert.Equal("mypostgres2", servers.GetProperty("2").GetProperty("Host").GetString());
490Assert.Equal("myuser", servers.GetProperty("2").GetProperty("Username").GetString());
491Assert.Equal("prefer", servers.GetProperty("2").GetProperty("SSLMode").GetString());
492Assert.Equal("postgres", servers.GetProperty("2").GetProperty("MaintenanceDB").GetString());
493Assert.Equal($"echo '{pg2.Resource.PasswordParameter.Value}'", servers.GetProperty("2").GetProperty("PasswordExecCommand").GetString());
Aspire.Hosting.Tests (2)
Diagnostics.FunctionalTests (7)
dotnet-openapi (1)
dotnet-user-jwts (2)
JwtBearerSample (1)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Microsoft.AspNetCore.Components.Web (22)
Microsoft.AspNetCore.Components.WebAssembly.Server (12)
Microsoft.AspNetCore.Components.WebView (13)
IpcReceiver.cs (12)
39await _onAttachMessage(args[0].GetString(), args[1].GetString());
52BeginInvokeDotNet(pageContext, args[0].GetString(), args[1].GetString(), args[2].GetString(), args[3].GetInt64(), args[4].GetString());
55EndInvokeJS(pageContext, args[2].GetString());
61OnRenderCompleted(pageContext, args[0].GetInt64(), args[1].GetString());
64OnLocationChanged(pageContext, args[0].GetString(), args[1].GetString(), args[2].GetBoolean());
67OnLocationChanging(pageContext, args[0].GetInt32(), args[1].GetString(), args[2].GetString(), args[3].GetBoolean());
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Diagnostics.Tests (10)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (42)
UnaryServerCallHandlerTests.cs (32)
82Assert.Equal("Hello TestName!", responseJson.RootElement.GetProperty("message").GetString());
120Assert.Equal(name, responseJson.RootElement.GetString());
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());
787Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
817Assert.Equal(expectedError, responseJson.RootElement.GetProperty("message").GetString());
841Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
866Assert.Equal("Detail!", responseJson.RootElement.GetProperty("message").GetString());
934Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
940Assert.Equal("type.googleapis.com/google.rpc.DebugInfo", d.GetProperty("@type").GetString());
941Assert.Equal("This is some debugging information", d.GetProperty("detail").GetString());
945Assert.Equal("type.googleapis.com/google.rpc.RequestInfo", d.GetProperty("@type").GetString());
946Assert.Equal("request-id", d.GetProperty("requestId").GetString());
950Assert.Equal("type.googleapis.com/google.rpc.BadRequest", d.GetProperty("@type").GetString());
1012Assert.Equal("This is a message", responseJson.RootElement.GetProperty("message").GetString());
1018Assert.Equal("type.googleapis.com/google.rpc.DebugInfo", d.GetProperty("@type").GetString());
1019Assert.Equal("This is some debugging information", d.GetProperty("detail").GetString());
1023Assert.Equal("type.googleapis.com/google.rpc.RequestInfo", d.GetProperty("@type").GetString());
1024Assert.Equal("request-id", d.GetProperty("requestId").GetString());
1028Assert.Equal("type.googleapis.com/google.rpc.BadRequest", d.GetProperty("@type").GetString());
1053Assert.Equal("Exception was thrown by handler.", responseJson.RootElement.GetProperty("message").GetString());
1083Assert.Equal("Exception was thrown by handler. InvalidOperationException: Error!", responseJson.RootElement.GetProperty("message").GetString());
1112Assert.Equal(@"Detail!", responseJson.RootElement.GetProperty("message").GetString());
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());
1738Assert.Equal("type.googleapis.com/google.protobuf.StringValue", anyMessage.GetProperty("@type").GetString());
1739Assert.Equal("A value!", anyMessage.GetProperty("value").GetString());
Microsoft.AspNetCore.Http.Abstractions.Tests (8)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (44)
MapIdentityApiTests.cs (44)
116var tokenType = loginContent.GetProperty("tokenType").GetString();
117var accessToken = loginContent.GetProperty("accessToken").GetString();
148var tokenType = loginContent.GetProperty("token_type").GetString();
149var accessToken = loginContent.GetProperty("access_token").GetString();
183var accessToken = loginContent.GetProperty("accessToken").GetString();
262var accessToken = loginContent.GetProperty("accessToken").GetString();
297var refreshToken = loginContent.GetProperty("refreshToken").GetString();
301var accessToken = refreshContent.GetProperty("accessToken").GetString();
343var refreshToken = loginContent.GetProperty("refreshToken").GetString();
344var accessToken = loginContent.GetProperty("refreshToken").GetString();
367refreshToken = refreshContent.GetProperty("refreshToken").GetString();
371accessToken = refreshContent.GetProperty("accessToken").GetString();
416var accessToken = refreshContent.GetProperty("accessToken").GetString();
673var accessToken = loginContent.GetProperty("accessToken").GetString();
674var refreshToken = loginContent.GetProperty("refreshToken").GetString();
695var sharedKey = twoFactorKeyContent.GetProperty("sharedKey").GetString();
731var accessToken = loginContent.GetProperty("accessToken").GetString();
736var sharedKey = twoFactorKeyContent.GetProperty("sharedKey").GetString();
747var recoveryCodes = enable2faContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray();
758var recoveryAccessToken = recoveryLoginContent.GetProperty("accessToken").GetString();
783var accessToken = loginContent.GetProperty("accessToken").GetString();
788var sharedKey = twoFactorKeyContent.GetProperty("sharedKey").GetString();
806var resetSharedKey = resetKeyContent.GetProperty("sharedKey").GetString();
830var accessToken = loginContent.GetProperty("accessToken").GetString();
835var sharedKey = twoFactorKeyContent.GetProperty("sharedKey").GetString();
844var recoveryCodes = enable2faContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray();
860var recoveryAccessToken = recoveryLoginContent.GetProperty("accessToken").GetString();
868Assert.Null(updated2faContent.GetProperty("recoveryCodes").GetString());
875var resetRecoveryCodes = resetRecoveryContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray();
904var sharedKey = twoFactorKeyContent.GetProperty("sharedKey").GetString();
1040Assert.Equal(Email, infoResponse.GetProperty("email").GetString());
1058Assert.Equal(Email, infoPostContent.GetProperty("email").GetString());
1085Assert.Equal(newEmail, infoAfterEmailChange.GetProperty("email").GetString());
1100Assert.Equal(newEmail, infoAfterFinalLogin.GetProperty("email").GetString());
1136Assert.Equal(Email, infoResponse.GetProperty("email").GetString());
1152Assert.Equal(Email, infoPostContent.GetProperty("email").GetString());
1174Assert.Equal(newEmail, infoAfterEmailChange.GetProperty("email").GetString());
1186Assert.Equal(newEmail, infoAfterFinalLogin.GetProperty("email").GetString());
1251Assert.Equal(Email, infoPostContent.GetProperty("email").GetString());
1270Assert.Equal(newEmail, infoGetContent.GetProperty("email").GetString());
1356=> claims.EnumerateArray().Single(e => e.GetProperty("type").GetString() == name).GetProperty("value").GetString();
1396var accessToken = loginContent.GetProperty("accessToken").GetString();
1397var refreshToken = loginContent.GetProperty("refreshToken").GetString();
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.Build (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.DotNet.Arcade.Sdk (1)
Negotiate.Client (4)
OpenIdConnectSample (1)
System.Text.Json (10)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)