Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/libraries/System.Console/tests/ConsoleHandles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace System.Tests
public partial class ConsoleTests
{
[Fact]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)]
public void OpenStandardInputHandle_ReturnsValidHandle()
{
using SafeFileHandle inputHandle = Console.OpenStandardInputHandle();
Expand All @@ -23,7 +23,7 @@ public void OpenStandardInputHandle_ReturnsValidHandle()
}

[Fact]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)]
public void OpenStandardOutputHandle_ReturnsValidHandle()
{
using SafeFileHandle outputHandle = Console.OpenStandardOutputHandle();
Expand All @@ -33,7 +33,7 @@ public void OpenStandardOutputHandle_ReturnsValidHandle()
}

[Fact]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)]
public void OpenStandardErrorHandle_ReturnsValidHandle()
{
using SafeFileHandle errorHandle = Console.OpenStandardErrorHandle();
Expand All @@ -43,7 +43,7 @@ public void OpenStandardErrorHandle_ReturnsValidHandle()
}

[Fact]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)]
public void OpenStandardHandles_DoNotOwnHandle()
{
SafeFileHandle inputHandle = Console.OpenStandardInputHandle();
Expand All @@ -69,7 +69,7 @@ public void OpenStandardHandles_DoNotOwnHandle()
}

[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.Android)]
[PlatformSpecific(TestPlatforms.Any & ~TestPlatforms.Browser & ~TestPlatforms.iOS & ~TestPlatforms.tvOS & ~TestPlatforms.MacCatalyst & ~TestPlatforms.Android)]
public void OpenStandardHandles_CanBeUsedWithStream()
{
using RemoteInvokeHandle child = RemoteExecutor.Invoke(() =>
Expand Down Expand Up @@ -149,21 +149,21 @@ public void UnixConsoleStream_SeekableStdoutRedirection_WritesAllContent()
}

[Fact]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.Browser)]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst | TestPlatforms.Browser)]
public void OpenStandardInputHandle_ThrowsOnUnsupportedPlatforms()
{
Assert.Throws<PlatformNotSupportedException>(() => Console.OpenStandardInputHandle());
}

[Fact]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS)]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void OpenStandardOutputHandle_ThrowsOnUnsupportedPlatforms()
{
Assert.Throws<PlatformNotSupportedException>(() => Console.OpenStandardOutputHandle());
}

[Fact]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS)]
[PlatformSpecific(TestPlatforms.Android | TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void OpenStandardErrorHandle_ThrowsOnUnsupportedPlatforms()
{
Assert.Throws<PlatformNotSupportedException>(() => Console.OpenStandardErrorHandle());
Expand Down
Loading