File tree 4 files changed +8
-8
lines changed
System.Runtime/tests/System.IO.Tests
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
13
13
public class SyncTextWriter
14
14
{
15
- [ Fact ]
16
- [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
15
+ // Browser bypasses SyncTextWriter for faster startup
16
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
17
17
public void SyncTextWriterLockedOnThis ( )
18
18
{
19
19
TextWriter oldWriter = Console . Out ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ public void ObjectClosedReadLineBaseStream()
29
29
Assert . Throws < ObjectDisposedException > ( ( ) => sr . ReadLine ( ) ) ;
30
30
}
31
31
32
- [ Fact ]
33
- [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
32
+ // Browser bypasses SyncTextWriter for faster startup
33
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
34
34
public void Synchronized_NewObject ( )
35
35
{
36
36
using ( Stream str = GetLargeStream ( ) )
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ namespace System.IO.Tests
7
7
{
8
8
public partial class WriteTests
9
9
{
10
- [ Fact ]
11
- [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
10
+ // Browser bypasses SyncTextWriter for faster startup
11
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
12
12
public void Synchronized_NewObject ( )
13
13
{
14
14
using ( Stream str = CreateStream ( ) )
Original file line number Diff line number Diff line change @@ -690,8 +690,8 @@ public void DisposeAsync_ExceptionReturnedInTask()
690
690
Assert . Same ( e , vt . AsTask ( ) . Exception . InnerException ) ;
691
691
}
692
692
693
- [ Fact ]
694
- [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
693
+ // Browser bypasses SyncTextWriter for faster startup
694
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
695
695
public async Task FlushAsync_Precanceled ( )
696
696
{
697
697
Assert . Equal ( TaskStatus . RanToCompletion , TextWriter . Null . FlushAsync ( new CancellationToken ( true ) ) . Status ) ;
You can’t perform that action at this time.
0 commit comments