Merge remote-tracking branch 'origin/v10/dev' into v11/dev

# Conflicts:
#	src/Umbraco.Core/Routing/UmbracoRequestPaths.cs
This commit is contained in:
Bjarke Berg
2023-03-29 10:29:44 +02:00
22 changed files with 3872 additions and 49 deletions

View File

@@ -326,6 +326,14 @@ public class StringExtensionsTests
Assert.AreEqual(expected, output);
}
[TestCase("test to test", "test", "release", "release to test")]
[TestCase("nothing to do", "test", "release", "nothing to do")]
public void ReplaceFirst(string input, string search, string replacement, string expected)
{
var output = input.ReplaceFirst(search, replacement);
Assert.AreEqual(expected, output);
}
[Test]
public void IsFullPath()
{