@@ -12,6 +12,10 @@ private sealed class TestControl : Control
12
12
}
13
13
14
14
[ Fact ]
15
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
16
+ category : "Usage" ,
17
+ checkId : "xUnit1051" ,
18
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
15
19
public async Task InvokeAsync_Action_ExecutesOnUIThread ( )
16
20
{
17
21
using var control = new TestControl ( ) ;
@@ -33,6 +37,10 @@ await control.InvokeAsync(
33
37
}
34
38
35
39
[ Fact ]
40
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
41
+ category : "Usage" ,
42
+ checkId : "xUnit1051" ,
43
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
36
44
public async Task InvokeAsync_FuncT_ExecutesOnUIThread_AndReturnsValue ( )
37
45
{
38
46
using var control = new TestControl ( ) ;
@@ -53,6 +61,10 @@ public async Task InvokeAsync_FuncT_ExecutesOnUIThread_AndReturnsValue()
53
61
}
54
62
55
63
[ Fact ]
64
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
65
+ category : "Usage" ,
66
+ checkId : "xUnit1051" ,
67
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
56
68
public async Task InvokeAsync_AsyncCallback_ExecutesOnUIThread ( )
57
69
{
58
70
using var control = new TestControl ( ) ;
@@ -74,6 +86,10 @@ await control.InvokeAsync(async ct =>
74
86
}
75
87
76
88
[ Fact ]
89
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
90
+ category : "Usage" ,
91
+ checkId : "xUnit1051" ,
92
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
77
93
public async Task InvokeAsync_AsyncCallbackT_ExecutesOnUIThread_AndReturnsValue ( )
78
94
{
79
95
using var control = new TestControl ( ) ;
@@ -207,6 +223,10 @@ await Assert.ThrowsAsync<InvalidOperationException>(() =>
207
223
}
208
224
209
225
[ Fact ]
226
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
227
+ category : "Usage" ,
228
+ checkId : "xUnit1051" ,
229
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
210
230
public async Task InvokeAsync_Propagates_Exception_FromCallback ( )
211
231
{
212
232
using var control = new TestControl ( ) ;
@@ -226,6 +246,10 @@ await Assert.ThrowsAsync<InvalidOperationException>(() =>
226
246
}
227
247
228
248
[ Fact ]
249
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
250
+ category : "Usage" ,
251
+ checkId : "xUnit1051" ,
252
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
229
253
public async Task InvokeAsync_Reentry_Supported ( )
230
254
{
231
255
using var control = new TestControl ( ) ;
@@ -241,6 +265,10 @@ await control.InvokeAsync(async ct =>
241
265
}
242
266
243
267
[ Fact ]
268
+ [ Diagnostics . CodeAnalysis . SuppressMessage (
269
+ category : "Usage" ,
270
+ checkId : "xUnit1051" ,
271
+ Justification = "We need to test a series of specific overloads and/or exceptions." ) ]
244
272
public async Task InvokeAsync_MultipleConcurrentCalls_AreThreadSafe ( )
245
273
{
246
274
using var control = new TestControl ( ) ;
0 commit comments