Skip to content

Commit

Permalink
restrict tests to platforms that support threading
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Oct 15, 2021
1 parent d4a4905 commit 9731032
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace System.Threading.Tasks.Tests
public class AsyncEnumerableToBlockingEnumerableTests
{

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public static void EmptyAsyncEnumerable()
{
var source = new InstrumentedAsyncEnumerable<int>(CreateSourceEnumerable());
Expand All @@ -34,7 +34,7 @@ static async IAsyncEnumerable<int> CreateSourceEnumerable()
}
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public static void SimpleAsyncEnumerable()
{
var source = new InstrumentedAsyncEnumerable<int>(CreateSourceEnumerable());
Expand Down Expand Up @@ -69,7 +69,7 @@ static async IAsyncEnumerable<int> CreateSourceEnumerable()
}
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public static void AsyncEnumerableWithDelays()
{
var source = new InstrumentedAsyncEnumerable<int>(CreateSourceEnumerable());
Expand Down Expand Up @@ -103,7 +103,7 @@ static async IAsyncEnumerable<int> CreateSourceEnumerable()
}
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public static void AsyncEnumerableWithException()
{
var source = new InstrumentedAsyncEnumerable<int>(CreateSourceEnumerable());
Expand Down Expand Up @@ -131,7 +131,7 @@ static async IAsyncEnumerable<int> CreateSourceEnumerable()
}
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public static void AsyncEnumerableWithCancellation()
{
var source = new InstrumentedAsyncEnumerable<string>(CreateSourceEnumerable());
Expand Down

0 comments on commit 9731032

Please sign in to comment.