diff --git a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/UseDefaultDllImportSearchPathsAttributeTests.cs b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/UseDefaultDllImportSearchPathsAttributeTests.cs index 329a79d170..09a52dda7c 100644 --- a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/UseDefaultDllImportSearchPathsAttributeTests.cs +++ b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/UseDefaultDllImportSearchPathsAttributeTests.cs @@ -3,6 +3,7 @@ using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Testing; +using Test.Utilities; using Xunit; using VerifyCS = Test.Utilities.CSharpSecurityCodeFixVerifier< Microsoft.NetCore.Analyzers.Security.UseDefaultDllImportSearchPathsAttribute, @@ -523,7 +524,7 @@ public void TestMethod() } // [DllImport] is set with an absolute path, which will let the [DefaultDllImportSearchPaths] be ignored. - [Fact(Skip = "user32.dll isn't available on linux")] + [WindowsOnlyFact] public async Task Test_DllImportAttributeWithAbsolutePath_DefaultDllImportSearchPaths_NoDiagnostic() { await VerifyCS.VerifyAnalyzerAsync(@" @@ -544,7 +545,7 @@ public void TestMethod() } // [DllImport] is set with an absolute path. - [Fact(Skip = "user32.dll isn't available on linux")] + [WindowsOnlyFact] public async Task Test_DllImportAttributeWithAbsolutePath_NoDiagnostic() { await VerifyCS.VerifyAnalyzerAsync(@" @@ -563,7 +564,7 @@ public void TestMethod() }"); } - [Fact(Skip = "user32.dll isn't available on linux")] + [WindowsOnlyFact] public async Task Test_UsingNonexistentAbsolutePath_NoDiagnostic() { await VerifyCS.VerifyAnalyzerAsync(@"