(() => new UdiRange(guidUdi, "x"));
}
+ [Test]
+ [TestCase(Constants.DeploySelector.This)]
+ [TestCase(Constants.DeploySelector.ThisAndChildren)]
+ [TestCase(Constants.DeploySelector.ThisAndDescendants)]
+ [TestCase(Constants.DeploySelector.ChildrenOfThis)]
+ [TestCase(Constants.DeploySelector.DescendantsOfThis)]
+ [TestCase(Constants.DeploySelector.EntitiesOfType)]
+ public void RangeParseTest(string selector)
+ {
+ var expected = new UdiRange(Udi.Create(Constants.UdiEntityType.AnyGuid, Guid.NewGuid()), selector);
+ var actual = UdiRange.Parse(expected.ToString());
+
+ Assert.AreEqual(expected, actual);
+ }
+
[Test]
public void TryParseTest()
{
diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs
index 93b0d5bba3..6ef0f74e2f 100644
--- a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs
+++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs
@@ -1,7 +1,6 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-using System.Linq;
using Microsoft.Extensions.Options;
using Moq;
using NUnit.Framework;
@@ -13,7 +12,6 @@ using Umbraco.Cms.Core.Routing;
using Umbraco.Cms.Core.Templates;
using Umbraco.Cms.Tests.Common;
using Umbraco.Cms.Tests.UnitTests.TestHelpers.Objects;
-using Umbraco.Extensions;
namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Templates;
@@ -111,10 +109,16 @@ public class HtmlLocalLinkParserTests
// current
[TestCase(
"world",
- "world")]
+ "world")]
[TestCase(
"world",
- "world")]
+ "world")]
+ [TestCase(
+ "world",
+ "world")]
+ [TestCase(
+ "world",
+ "world")]
// legacy
[TestCase(
"hello href=\"{localLink:1234}\" world ",
diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/DeliveryApi/ApiRichTextMarkupParserTests.cs b/tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/DeliveryApi/ApiRichTextMarkupParserTests.cs
index 43ec2136f7..850aabbe04 100644
--- a/tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/DeliveryApi/ApiRichTextMarkupParserTests.cs
+++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/DeliveryApi/ApiRichTextMarkupParserTests.cs
@@ -72,8 +72,8 @@ public class ApiRichTextMarkupParserTests
and to the other page
";
var expectedOutput =
- @"Rich text outside of the blocks with a link to itself
-and to the other page
";
+ @"Rich text outside of the blocks with a link to itself
+and to the other page
";
var parsedHtml = parser.Parse(html);
@@ -81,7 +81,7 @@ public class ApiRichTextMarkupParserTests
}
[Test]
- public void Can_Parse_Legacy_LocalImages()
+ public void Can_Parse_Inline_LocalImages()
{
var key1 = Guid.Parse("395bdc0e8f4d4ad4af7f3a3f6265651e");
var data1 = new MockData()
diff --git a/tools/Umbraco.JsonSchema/Umbraco.JsonSchema.csproj b/tools/Umbraco.JsonSchema/Umbraco.JsonSchema.csproj
index 431674852e..ce5001608f 100644
--- a/tools/Umbraco.JsonSchema/Umbraco.JsonSchema.csproj
+++ b/tools/Umbraco.JsonSchema/Umbraco.JsonSchema.csproj
@@ -7,7 +7,7 @@
-
+