Skip to content

Commit fde7601

Browse files
authored
Run on Windows only
1 parent ddd1d7f commit fde7601

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/PreferStreamWriteAsyncMemoryOverloadsTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Collections.Generic;
44
using System.Threading.Tasks;
55
using Microsoft.CodeAnalysis.Testing;
6+
using Test.Utilities;
67
using Xunit;
78

89
#pragma warning disable CA1305 // Specify IFormatProvider in string.Format
@@ -566,7 +567,7 @@ public static IEnumerable<object[]> CSharpInlinedByteArrayTestData()
566567
"(new byte[]{ 0xBA, 0x5E, 0xBA, 0x11, 0xF0, 0x07, 0xBA, 0x11 }).AsMemory(0, 8), new CancellationToken()" };
567568
}
568569

569-
[Fact]
570+
[WindowsOnlyFact] // https://github.com/dotnet/roslyn/issues/65081
570571
public Task CS_Fixer_Diagnostic_EnsureSystemNamespaceAutoAddedAsync()
571572
{
572573
string originalCode = @"
@@ -849,7 +850,7 @@ public static IEnumerable<object[]> VisualBasicInlinedByteArrayTestData()
849850
@"(New Byte() {&HBA, &H5E, &HBA, &H11, &HF0, &H07, &HBA, &H11}).AsMemory(0, 8), New CancellationToken()" };
850851
}
851852

852-
[Fact]
853+
[WindowsOnlyFact] // https://github.com/dotnet/roslyn/issues/65081
853854
public Task VB_Fixer_Diagnostic_EnsureSystemNamespaceAutoAddedAsync()
854855
{
855856
string originalCode = @"
@@ -1137,4 +1138,4 @@ protected DiagnosticResult GetVisualBasicResult(int startLine, int startColumn,
11371138

11381139
#endregion
11391140
}
1140-
}
1141+
}

0 commit comments

Comments
 (0)