diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentCrudServiceTests.cs b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentCrudServiceTests.cs index e5808f38ad..621575fb11 100644 --- a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentCrudServiceTests.cs +++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentCrudServiceTests.cs @@ -133,7 +133,7 @@ public class ContentCrudServiceTests } [Test] - public void Create_WithNullContentType_ThrowsArgumentException() + public void Create_WithNonExistentContentType_ThrowsException() { // Arrange CreateMockScopeWithReadLock(); @@ -141,7 +141,8 @@ public class ContentCrudServiceTests .Returns(Enumerable.Empty()); // Act & Assert - Assert.Throws(() => + // Note: Throws generic Exception to match original ContentService behavior + Assert.Throws(() => _sut.Create("Test", Constants.System.Root, "nonExistentType")); }