411 references to StartsWith
Diagnostics.EFCore.FunctionalTests (4)
IIS.Common.TestLib (1)
IIS.FunctionalTests (4)
IISExpress.FunctionalTests (4)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Antiforgery.Test (2)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.Authentication.Test (23)
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Tests (13)
Microsoft.AspNetCore.Components.Web.Tests (5)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (7)
Microsoft.AspNetCore.Http.Tests (7)
Microsoft.AspNetCore.HttpLogging.Tests (11)
Microsoft.AspNetCore.HttpOverrides.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (3)
Microsoft.AspNetCore.Identity.Test (118)
Passkeys\DefaultPasskeyHandlerAssertionTest.cs (56)
45Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
64Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
80Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
96Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
115Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
130Assert.StartsWith("Expected credential type 'public-key', got 'unexpected-value'", result.Failure.Message);
145Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
164Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
180Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message);
197Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message);
216Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message);
232Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
251Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
266Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
282Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
301Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
317Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
333Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
349Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
368Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
384Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
400Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
417Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
434Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
449Assert.StartsWith("The authenticator response was missing a user handle", result.Failure.Message);
468Assert.StartsWith("The provided user handle", result.Failure.Message);
483Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
502Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
520Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.get'", result.Failure.Message);
535Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
554Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
569Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
585Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
607Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
622Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
641Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
656Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
678Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
695Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
710Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
730Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
781Assert.StartsWith(
798Assert.StartsWith("The authenticator data flags did not include the 'UserPresent' flag", result.Failure.Message);
828Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
845Assert.StartsWith("The authenticator data included an invalid Relying Party ID hash", result.Failure.Message);
862Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
903Assert.StartsWith(
948Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
991Assert.StartsWith(
1014Assert.StartsWith(
1061Assert.StartsWith(
1084Assert.StartsWith(
1102Assert.StartsWith(
1120Assert.StartsWith(
1136Assert.StartsWith(
1169Assert.StartsWith("The provided credential does not belong to the specified user", result.Failure.Message);
Passkeys\DefaultPasskeyHandlerAttestationTest.cs (62)
45Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
64Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
80Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
96Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
115Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
130Assert.StartsWith("Expected credential type 'public-key', got 'unexpected-value'", result.Failure.Message);
145Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
164Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
180Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
199Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
214Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
231Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
248Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
267Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
283Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
302Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
318Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
337Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
352Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
369Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
387Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
406Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
422Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
441Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
456Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
472Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
491Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
506Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
521Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
540Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
558Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.create'", result.Failure.Message);
573Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
592Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
607Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
623Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
645Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
660Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
679Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
694Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
716Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
733Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
748Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
768Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
798Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
830Assert.StartsWith(
848Assert.StartsWith(
883Assert.StartsWith(
901Assert.StartsWith(
915Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
931Assert.StartsWith("The attestation object did not include an attestation statement format", result.Failure.Message);
947Assert.StartsWith("The attestation object did not include an attestation statement", result.Failure.Message);
963Assert.StartsWith("The attestation object did not include authenticator data", result.Failure.Message);
978Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
994Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
1010Assert.StartsWith("The attested credential data had an invalid byte count of 0", result.Failure.Message);
1026Assert.StartsWith("No attested credential data was provided by the authenticator", result.Failure.Message);
1041Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
1095Assert.StartsWith("The credential public key algorithm does not match any of the supported algorithms", result.Failure.Message);
1109Assert.StartsWith("The attestation statement was not valid", result.Failure.Message);
1125Assert.StartsWith("Expected the credential ID to have a length between 1 and 1023 bytes", result.Failure.Message);
1142Assert.StartsWith(
1158Assert.StartsWith("The credential is already registered for a user", result.Failure.Message);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (28)
RazorPagesTest.cs (24)
69Assert.StartsWith("Method: OnGetCustomer", content.Trim());
79Assert.StartsWith("Method: OnGetCustomer", content.Trim());
89Assert.StartsWith("Method: OnGetCustomer", content.Trim());
111Assert.StartsWith("Method: OnPostAsync", content.Trim());
121Assert.StartsWith("Method: OnGetViewCustomerAsync", content.Trim());
202Assert.StartsWith("Method: OnGetCustomer", content.Trim());
224Assert.StartsWith("Method: OnPostAsync", content.Trim());
234Assert.StartsWith("Method: OnGetViewCustomerAsync", content.Trim());
326Assert.StartsWith("<a href=\"/Show?id=2\">Post title</a>", content.Trim());
427Assert.StartsWith("Hello, You posted!", content.Trim());
446Assert.StartsWith("Hello, pagemodel!", content.Trim());
565Assert.StartsWith("Message: Secret Message", content.Trim());
590Assert.StartsWith("Message: Secret post", content.Trim());
603Assert.StartsWith("Message: Secret post", content.Trim());
687Assert.StartsWith(expected, content.Trim());
742Assert.StartsWith(expected, content.Trim());
858Assert.StartsWith(expected, content.Trim());
882Assert.StartsWith(expected, content.Trim());
931Assert.StartsWith(expected, content.Trim());
1177Assert.StartsWith(expected, response.Trim());
1190Assert.StartsWith(expected, response.Trim());
1203Assert.StartsWith(expected, response.Trim());
1303Assert.StartsWith(expected, responseContent.Trim());
1344Assert.StartsWith(expected, responseContent.Trim());
Microsoft.AspNetCore.Mvc.Localization.Test (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
179Assert.StartsWith($"error CS0016: Could not write to output file '{xmlPath}' -- ", outWriter.ToString());
4766Assert.StartsWith($"error CS2012: Cannot open '{subFolder}' for writing -- ", output); // Cannot create a file when that file already exists.
14781Assert.StartsWith($"error CS8785: Generator 'FailsExecuteGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'Exception' with message 'THROW'",
14826Assert.StartsWith($"error CS8784: Generator 'FailsInitializeGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'Exception' with message 'THROW'",
15827Assert.StartsWith("test.cs(3,47): error CS9211: The diagnosticId argument to the 'Experimental' attribute must be a valid identifier",
15866Assert.StartsWith("test.cs(1,1): warning DiagID: 'C' is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.",
15906Assert.StartsWith("test.cs(1,1): error DiagID: 'C' is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.",
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
Microsoft.DotNet.Helix.JobSender.Tests (2)
Microsoft.DotNet.XUnitAssert.Tests (15)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.JSInterop.Tests (4)
Microsoft.ML.AutoML.Tests (11)
UserInputValidationTests.cs (11)
30Assert.StartsWith("Training data cannot be null", ex.Message);
120Assert.StartsWith("Training data and validation data schemas do not match. Train data has '2' columns,and validation data has '1' columns.", ex.Message);
143Assert.StartsWith("Training data and validation data schemas do not match. Column '1' exists in train data, but not in validation data.", ex.Message);
166Assert.StartsWith("Training data and validation data schemas do not match. Column '1' is of type String in train data, and type Single in validation data.", ex.Message);
174Assert.StartsWith("Provided path cannot be null", ex.Message);
181Assert.StartsWith("File 'idontexist' does not exist", ex.Message);
190Assert.StartsWith("File at path 'empty' cannot be empty", ex.Message);
209Assert.StartsWith("Features column must be of data type Single", ex.Message);
304Assert.StartsWith("Only supported feature column types are Boolean, Single, and String. Please change the feature column UInt64 of type UInt64 to one of the supported types.", ex.Message);
317Assert.StartsWith("Training data has 0 rows", ex.Message);
340Assert.StartsWith("Validation data has 0 rows", ex.Message);
Microsoft.ML.Tests (3)
Roslyn.VisualStudio.Next.UnitTests (2)
ServerComparison.FunctionalTests (2)
Shared.Tests (48)
Throw\DoubleTests.cs (12)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message);
24Assert.StartsWith("Argument less than minimum value 1", exception.Message);
39Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
43Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
59Assert.StartsWith($"Argument less or equal than minimum value {TestValue}", exception.Message);
63Assert.StartsWith($"Argument less or equal than minimum value {TestValue}", exception.Message);
79Assert.StartsWith($"Argument greater or equal than maximum value {TestValue}", exception.Message);
83Assert.StartsWith($"Argument greater or equal than maximum value {TestValue}", exception.Message);
100Assert.StartsWith("Argument is zero", exception.Message);
119Assert.StartsWith("Argument not in the range", exception.Message);
123Assert.StartsWith("Argument not in the range", exception.Message);
130Assert.StartsWith("Argument not in the range", exception.Message);
Throw\IntegerTests.cs (14)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message);
35Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
50Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message);
65Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message);
80Assert.StartsWith("Argument is zero", exception.Message);
95Assert.StartsWith("Argument not in the range", exception.Message);
99Assert.StartsWith("Argument not in the range", exception.Message);
180Assert.StartsWith("Argument less than minimum value 1", exception.Message);
195Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
210Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message);
225Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message);
240Assert.StartsWith("Argument is zero", exception.Message);
255Assert.StartsWith("Argument not in the range", exception.Message);
259Assert.StartsWith("Argument not in the range", exception.Message);
Throw\LongTests.cs (14)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message);
35Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
50Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message);
65Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message);
80Assert.StartsWith("Argument is zero", exception.Message);
95Assert.StartsWith("Argument not in the range", exception.Message);
99Assert.StartsWith("Argument not in the range", exception.Message);
180Assert.StartsWith("Argument less than minimum value 1", exception.Message);
195Assert.StartsWith("Argument greater than maximum value 0", exception.Message);
210Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message);
225Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message);
240Assert.StartsWith("Argument is zero", exception.Message);
255Assert.StartsWith("Argument not in the range", exception.Message);
259Assert.StartsWith("Argument not in the range", exception.Message);
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)