From fde7601e7add3f2eedc20fac408ae74915b195c1 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 21 Dec 2022 08:31:42 +0200 Subject: [PATCH] Run on Windows only --- .../Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs index 44599a4269..428ed6f98e 100644 --- a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs +++ b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Testing; +using Test.Utilities; using Xunit; #pragma warning disable CA1305 // Specify IFormatProvider in string.Format @@ -566,7 +567,7 @@ public static IEnumerable CSharpInlinedByteArrayTestData() "(new byte[]{ 0xBA, 0x5E, 0xBA, 0x11, 0xF0, 0x07, 0xBA, 0x11 }).AsMemory(0, 8), new CancellationToken()" }; } - [Fact] + [WindowsOnlyFact] // https://github.com/dotnet/roslyn/issues/65081 public Task CS_Fixer_Diagnostic_EnsureSystemNamespaceAutoAddedAsync() { string originalCode = @" @@ -849,7 +850,7 @@ public static IEnumerable VisualBasicInlinedByteArrayTestData() @"(New Byte() {&HBA, &H5E, &HBA, &H11, &HF0, &H07, &HBA, &H11}).AsMemory(0, 8), New CancellationToken()" }; } - [Fact] + [WindowsOnlyFact] // https://github.com/dotnet/roslyn/issues/65081 public Task VB_Fixer_Diagnostic_EnsureSystemNamespaceAutoAddedAsync() { string originalCode = @" @@ -1137,4 +1138,4 @@ protected DiagnosticResult GetVisualBasicResult(int startLine, int startColumn, #endregion } -} \ No newline at end of file +}