using System.IO;
using Xunit;
+[Collection(nameof(DisableParallelization))] // Console.Out is a static singleton, other tests should not be using it at the same time
public class SetOut
{
[Fact]
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/57935", TestPlatforms.AnyUnix)]
public static void SetOutReadToEnd()
{
Helpers.SetAndReadHelper(tw => Console.SetOut(tw), () => Console.Out, sr => sr.ReadToEnd());
Link="Common\System\IO\InterceptStreamWriter.cs" />
<Compile Include="$(CommonTestPath)System\ShouldNotBeInvokedException.cs"
Link="Common\System\ShouldNotBeInvokedException.cs" />
+ <Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelization.cs"
+ Link="Common\TestUtilities\System\DisableParallelization.cs" />
<Compile Include="WindowAndCursorProps.cs" />
</ItemGroup>
<ItemGroup>