diff --git a/tests/components/Microsoft.DotNet.UpgradeAssistant.Extensions.Tests/ExtensionConfigurationTests.cs b/tests/components/Microsoft.DotNet.UpgradeAssistant.Extensions.Tests/ExtensionConfigurationTests.cs index 062bafc6f..03d92303e 100644 --- a/tests/components/Microsoft.DotNet.UpgradeAssistant.Extensions.Tests/ExtensionConfigurationTests.cs +++ b/tests/components/Microsoft.DotNet.UpgradeAssistant.Extensions.Tests/ExtensionConfigurationTests.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Text.Json; using AutoFixture; @@ -28,6 +29,11 @@ public ExtensionConfigurationTests() [Fact] public void ItemsSet() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } + // Arrange var expected = _fixture.Create(); var manifests = new[] @@ -48,6 +54,11 @@ public void ItemsSet() [Fact] public void SingleArray() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } + // Arrange var manifests = new[] { @@ -66,6 +77,11 @@ public void SingleArray() [Fact] public void LastArrayIsUsed() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } + // Arrange var manifests = new[] {