diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 0e0dbcafc2..602269f6c9 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -71,7 +71,7 @@ stages: - job: A displayName: Build Umbraco CMS pool: - vmImage: 'ubuntu-latest' + vmImage: 'windows-latest' steps: - checkout: self submodules: true diff --git a/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/PropertyEditors/RichTextElementLevelVariationTests.cs b/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/PropertyEditors/RichTextElementLevelVariationTests.cs index 80d02caa15..dfc8ae6141 100644 --- a/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/PropertyEditors/RichTextElementLevelVariationTests.cs +++ b/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/PropertyEditors/RichTextElementLevelVariationTests.cs @@ -482,7 +482,7 @@ public class RichTextElementLevelVariationTests : BlockEditorElementVariationTes Assert.AreEqual(1, indexValue.Values.Count()); var indexedValue = indexValue.Values.First() as string; Assert.IsNotNull(indexedValue); - var values = indexedValue.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToArray(); + var values = indexedValue.Split(Environment.NewLine).Select(s => s.Trim()).Where(s => s.IsNullOrWhiteSpace() is false).ToArray(); Assert.AreEqual(expectedIndexedValues.Length, values.Length); Assert.IsTrue(values.ContainsAll(expectedIndexedValues)); } @@ -562,7 +562,7 @@ public class RichTextElementLevelVariationTests : BlockEditorElementVariationTes Assert.AreEqual(1, indexValue.Values.Count()); var indexedValue = indexValue.Values.First() as string; Assert.IsNotNull(indexedValue); - var values = indexedValue.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToArray(); + var values = indexedValue.Split(Environment.NewLine).Select(s => s.Trim()).Where(s => s.IsNullOrWhiteSpace() is false).ToArray(); Assert.AreEqual(expectedIndexedValues.Length, values.Length); Assert.IsTrue(values.ContainsAll(expectedIndexedValues)); } @@ -624,7 +624,7 @@ public class RichTextElementLevelVariationTests : BlockEditorElementVariationTes Assert.AreEqual(1, indexValue.Values.Count()); var indexedValue = indexValue.Values.First() as string; Assert.IsNotNull(indexedValue); - var values = indexedValue.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToArray(); + var values = indexedValue.Split(Environment.NewLine).Select(s => s.Trim()).Where(s => s.IsNullOrWhiteSpace() is false).ToArray(); Assert.AreEqual(expectedIndexedValues.Length, values.Length); Assert.IsTrue(values.ContainsAll(expectedIndexedValues)); }