@@ -102,8 +102,8 @@ public void Contents_Fake_Gets_Sets_When_IsSupportedFalse ()
102
102
[ Fact , AutoInitShutdown ( useFakeClipboard : false ) ]
103
103
public void IsSupported_Get ( )
104
104
{
105
- if ( Clipboard . IsSupported ) Assert . True ( Clipboard . IsSupported ) ;
106
- else Assert . False ( Clipboard . IsSupported ) ;
105
+ if ( Clipboard . IsSupported ) Assert . True ( Clipboard . IsSupported ) ;
106
+ else Assert . False ( Clipboard . IsSupported ) ;
107
107
}
108
108
109
109
[ Fact , AutoInitShutdown ( useFakeClipboard : false ) ]
@@ -129,15 +129,15 @@ public void TryGetClipboardData_Gets_From_OS_Clipboard ()
129
129
public void TrySetClipboardData_Sets_The_OS_Clipboard ( )
130
130
{
131
131
var clipText = "The TrySetClipboardData_Sets_The_OS_Clipboard unit test pasted this to the OS clipboard." ;
132
- if ( Clipboard . IsSupported ) Assert . True ( Clipboard . TrySetClipboardData ( clipText ) ) ;
133
- else Assert . False ( Clipboard . TrySetClipboardData ( clipText ) ) ;
132
+ if ( Clipboard . IsSupported ) Assert . True ( Clipboard . TrySetClipboardData ( clipText ) ) ;
133
+ else Assert . False ( Clipboard . TrySetClipboardData ( clipText ) ) ;
134
134
135
135
Application . Iteration += ( ) => Application . RequestStop ( ) ;
136
136
137
137
Application . Run ( ) ;
138
138
139
- if ( Clipboard . IsSupported ) Assert . Equal ( clipText , Clipboard . Contents ) ;
140
- else Assert . NotEqual ( clipText , Clipboard . Contents ) ;
139
+ if ( Clipboard . IsSupported ) Assert . Equal ( clipText , Clipboard . Contents ) ;
140
+ else Assert . NotEqual ( clipText , Clipboard . Contents ) ;
141
141
}
142
142
143
143
@@ -209,7 +209,9 @@ public void Contents_Copies_From_OS_Clipboard ()
209
209
210
210
Application . Run ( ) ;
211
211
212
- if ( ! failed ) Assert . Equal ( clipText , getClipText ) ;
212
+ if ( ! failed ) {
213
+ Assert . Equal ( clipText , getClipText ) ;
214
+ }
213
215
}
214
216
215
217
[ Fact , AutoInitShutdown ( useFakeClipboard : false ) ]
@@ -265,7 +267,7 @@ public void Contents_Pastes_To_OS_Clipboard ()
265
267
266
268
Application . Run ( ) ;
267
269
268
- if ( ! failed ) Assert . Equal ( clipText , clipReadText . TrimEnd ( ) ) ;
270
+ if ( ! failed ) Assert . Equal ( clipText , clipReadText . TrimEnd ( ) ) ;
269
271
270
272
}
271
273
0 commit comments