108 references to EndsWith
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
175Assert.EndsWith(expectedUrl, e.Location);
Aspire.Hosting.Azure.Tests (5)
AzurePostgresExtensionsTests.cs (2)
285Assert.EndsWith("Database=db1", db1ConnectionString); 289Assert.EndsWith("Database=db2Name", db2ConnectionString);
AzureSqlExtensionsTests.cs (3)
164Assert.EndsWith(";TrustServerCertificate=true", serverConnectionString); 168Assert.EndsWith(";TrustServerCertificate=true;Database=db1", db1ConnectionString); 172Assert.EndsWith(";TrustServerCertificate=true;Database=db2Name", db2ConnectionString);
Aspire.Hosting.Oracle.Tests (1)
AddOracleTests.cs (1)
128Assert.EndsWith(";data source=localhost:2000", connectionString);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
439Assert.EndsWith("Response End", text);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1482Assert.EndsWith("</html>\r\n", responseString);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1482Assert.EndsWith("</html>\r\n", responseString);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1482Assert.EndsWith("</html>\r\n", responseString);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
439Assert.EndsWith("Response End", text);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1482Assert.EndsWith("</html>\r\n", responseString);
Microsoft.AspNetCore.Authentication.Test (1)
OpenIdConnect\OpenIdConnectTests.cs (1)
162Assert.EndsWith("ExtC", correlation);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
RazorComponentResultTest.cs (3)
274Assert.EndsWith( 362Assert.EndsWith( 397Assert.EndsWith(
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (2)
684Assert.EndsWith(Path.DirectorySeparatorChar + "testroot", basePath); 687Assert.EndsWith(Path.DirectorySeparatorChar + "testroot", basePath2);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
1146Assert.EndsWith("but no body was provided. Did you mean to use a Service instead?", message);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (1)
204Assert.EndsWith("but no body was provided. Did you mean to use a Service instead?", ex.Message);
Microsoft.AspNetCore.Http.Tests (2)
ResponseCookiesTest.cs (2)
75Assert.EndsWith("key=value", cookieHeaderValues[0]); 97Assert.EndsWith("key=value", cookieHeaderValues[0]);
Microsoft.AspNetCore.HttpLogging.Tests (1)
W3CLoggingMiddlewareTests.cs (1)
147Assert.EndsWith("- - 1.3.3.7,+2001:db8:85a3:8d3:1319:8a2e:370:7348", lines[3]);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
RazorPagesTest.cs (3)
566Assert.EndsWith("TempData: Secret Message", content.Trim()); 591Assert.EndsWith("TempData:", content.Trim()); 604Assert.EndsWith("TempData: Secret post", content.Trim());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
OpaqueUpgradeTests.cs (1)
359Assert.EndsWith("HTTP/1.1 500 Internal Server Error", ex.Message);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
ReasonPhrasesTests.cs (1)
38Assert.EndsWith(reasonPhrase, Encoding.ASCII.GetString(bytes));
Microsoft.AspNetCore.Shared.Tests (1)
StackTraceHelperTest.cs (1)
247Assert.EndsWith("(Closure )", frame.MethodDisplayInfo.ToString());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
2737Assert.EndsWith("The name of the user changed from 'test1' to 'test2'.", changeLog.Message);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
571Assert.EndsWith("canceled by client.", ((string)complete["error"]));
Microsoft.Build.Engine.UnitTests (5)
FileUtilities_Tests.cs (4)
774Assert.EndsWith(".tmp", path); 796Assert.EndsWith(".bat", path); 819Assert.EndsWith(".bat", path); 842Assert.EndsWith(".bat", path);
Globbing\MSBuildGlob_Tests.cs (1)
167Assert.EndsWith("%42" + Path.DirectorySeparatorChar, glob.FixedDirectoryPart);
Microsoft.Build.Tasks.UnitTests (2)
ConvertToAbsolutePath_Tests.cs (2)
44Assert.EndsWith(testFile.FullName, t.AbsolutePaths[0].ItemSpec); 76Assert.EndsWith(testFile.FullName, t.AbsolutePaths[0].ItemSpec);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (2)
456Assert.EndsWith("002_007", i.SortText); // Addition 461Assert.EndsWith("002_014", i.SortText); // unary plus
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (55)
SourceGeneration\SyntaxAwareGeneratorTests.cs (55)
870Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 871Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 872Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 916Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 917Assert.EndsWith("classC.cs", results.GeneratedTrees[1].FilePath); 918Assert.EndsWith("classD.cs", results.GeneratedTrees[2].FilePath); 962Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 963Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 964Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 973Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 974Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 975Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 984Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 985Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 986Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1029Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1030Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1031Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1047Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1048Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1049Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1050Assert.EndsWith("fieldD.cs", results.GeneratedTrees[3].FilePath); 1051Assert.EndsWith("fieldE.cs", results.GeneratedTrees[4].FilePath); 1104Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1105Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1106Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1107Assert.EndsWith("fieldD.cs", results.GeneratedTrees[3].FilePath); 1108Assert.EndsWith("fieldE.cs", results.GeneratedTrees[4].FilePath); 1128Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1129Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1130Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1236Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1237Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1238Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1265Assert.EndsWith("fieldD.cs", results.GeneratedTrees[0].FilePath); 1266Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1267Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1323Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1324Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1325Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1336Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1337Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1338Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1349Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1350Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1351Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1411Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1412Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1413Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1441Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1442Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1443Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath); 1474Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath); 1475Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath); 1476Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
IncrementalParsing\IncrementalParsingTests.cs (2)
625Assert.EndsWith("{", openBraceLine.ToString()); 837Assert.EndsWith("}", closeBraceLine.ToString());
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
VisualBasicParsingTests.cs (1)
70Assert.EndsWith(keywordSuffix, kindText);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
BuildHostProcessManagerTests.cs (1)
57Assert.EndsWith("Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe", processStartInfo.FileName);
Microsoft.DotNet.XUnitAssert.Tests (5)
StringAssertsTests.cs (5)
431 Assert.EndsWith("world!", "Hello, world!"); 460 verify(() => Assert.EndsWith("hey", "Hello, world!")); 489 verify(() => Assert.EndsWith("WORLD!", "world!")); 521 var ex = Record.Exception(() => Assert.EndsWith("foo", null)); 551 verify(() => Assert.EndsWith(expected, actual));
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\AcceptanceTests.cs (1)
80Assert.EndsWith($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", firstLogRecord.Message);
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
1826Assert.EndsWith(stdSuffix, name);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
147Assert.EndsWith("Movie.mpg", (string)urlProperty.GetValue(mediaPlayer));