diff --git a/test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj b/test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj
index 442ec07b6..1b9278a64 100644
--- a/test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj
+++ b/test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj
@@ -14,7 +14,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/test/Altinn.App.Api.Tests/Telemetry/TelemetryConfigurationTests.cs b/test/Altinn.App.Api.Tests/Telemetry/TelemetryConfigurationTests.cs
index 483d72af2..dadf818a8 100644
--- a/test/Altinn.App.Api.Tests/Telemetry/TelemetryConfigurationTests.cs
+++ b/test/Altinn.App.Api.Tests/Telemetry/TelemetryConfigurationTests.cs
@@ -218,7 +218,7 @@ public async Task KeyedServices_Produces_Error_Diagnostics()
EventLevel[] errorLevels = [EventLevel.Error, EventLevel.Critical];
var events = listener.Events;
- Assert.NotEmpty(events.Where(e => errorLevels.Contains(e.Level)));
+ Assert.Contains(events, e => errorLevels.Contains(e.Level));
}
[Fact]
diff --git a/test/Altinn.App.Common.Tests/Altinn.App.Common.Tests.csproj b/test/Altinn.App.Common.Tests/Altinn.App.Common.Tests.csproj
index d294348ed..6478c335c 100644
--- a/test/Altinn.App.Common.Tests/Altinn.App.Common.Tests.csproj
+++ b/test/Altinn.App.Common.Tests/Altinn.App.Common.Tests.csproj
@@ -17,12 +17,12 @@
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj b/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj
index 50b3331ac..b24dc89ec 100644
--- a/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj
+++ b/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj
@@ -43,12 +43,12 @@
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive