@@ -37,7 +37,7 @@ public void BuildWebHostPattern_CanFindServiceProvider()
37
37
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
38
38
}
39
39
40
- [ Fact ]
40
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
41
41
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( BuildWebHostInvalidSignature . Program ) ) ]
42
42
public void BuildWebHostPattern__Invalid_CantFindWebHost ( )
43
43
{
@@ -46,7 +46,7 @@ public void BuildWebHostPattern__Invalid_CantFindWebHost()
46
46
Assert . Null ( factory ) ;
47
47
}
48
48
49
- [ Fact ]
49
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
50
50
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( BuildWebHostInvalidSignature . Program ) ) ]
51
51
public void BuildWebHostPattern__Invalid_CantFindServiceProvider ( )
52
52
{
@@ -55,7 +55,7 @@ public void BuildWebHostPattern__Invalid_CantFindServiceProvider()
55
55
Assert . NotNull ( factory ) ;
56
56
}
57
57
58
- [ Fact ]
58
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
59
59
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateWebHostBuilderPatternTestSite . Program ) ) ]
60
60
public void CreateWebHostBuilderPattern_CanFindWebHostBuilder ( )
61
61
{
@@ -65,7 +65,7 @@ public void CreateWebHostBuilderPattern_CanFindWebHostBuilder()
65
65
Assert . IsAssignableFrom < IWebHostBuilder > ( factory ( Array . Empty < string > ( ) ) ) ;
66
66
}
67
67
68
- [ Fact ]
68
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
69
69
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateWebHostBuilderPatternTestSite . Program ) ) ]
70
70
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( IWebHost ) ) ]
71
71
public void CreateWebHostBuilderPattern_CanFindServiceProvider ( )
@@ -76,7 +76,7 @@ public void CreateWebHostBuilderPattern_CanFindServiceProvider()
76
76
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
77
77
}
78
78
79
- [ Fact ]
79
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
80
80
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateWebHostBuilderInvalidSignature . Program ) ) ]
81
81
public void CreateWebHostBuilderPattern__Invalid_CantFindWebHostBuilder ( )
82
82
{
@@ -85,7 +85,7 @@ public void CreateWebHostBuilderPattern__Invalid_CantFindWebHostBuilder()
85
85
Assert . Null ( factory ) ;
86
86
}
87
87
88
- [ Fact ]
88
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
89
89
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateWebHostBuilderInvalidSignature . Program ) ) ]
90
90
public void CreateWebHostBuilderPattern__InvalidReturnType_CanFindServiceProvider ( )
91
91
{
@@ -95,7 +95,7 @@ public void CreateWebHostBuilderPattern__InvalidReturnType_CanFindServiceProvide
95
95
Assert . Null ( factory ( Array . Empty < string > ( ) ) ) ;
96
96
}
97
97
98
- [ Fact ]
98
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
99
99
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateHostBuilderPatternTestSite . Program ) ) ]
100
100
public void CreateHostBuilderPattern_CanFindHostBuilder ( )
101
101
{
@@ -105,7 +105,7 @@ public void CreateHostBuilderPattern_CanFindHostBuilder()
105
105
Assert . IsAssignableFrom < IHostBuilder > ( factory ( Array . Empty < string > ( ) ) ) ;
106
106
}
107
107
108
- [ Fact ]
108
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
109
109
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateHostBuilderPatternTestSite . Program ) ) ]
110
110
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( Host ) ) ]
111
111
public void CreateHostBuilderPattern_CanFindServiceProvider ( )
@@ -116,7 +116,7 @@ public void CreateHostBuilderPattern_CanFindServiceProvider()
116
116
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
117
117
}
118
118
119
- [ Fact ]
119
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
120
120
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateHostBuilderInvalidSignature . Program ) ) ]
121
121
public void CreateHostBuilderPattern__Invalid_CantFindHostBuilder ( )
122
122
{
@@ -125,7 +125,7 @@ public void CreateHostBuilderPattern__Invalid_CantFindHostBuilder()
125
125
Assert . Null ( factory ) ;
126
126
}
127
127
128
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
128
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
129
129
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( CreateHostBuilderInvalidSignature . Program ) ) ]
130
130
public void CreateHostBuilderPattern__Invalid_CantFindServiceProvider ( )
131
131
{
@@ -135,7 +135,7 @@ public void CreateHostBuilderPattern__Invalid_CantFindServiceProvider()
135
135
Assert . Throws < InvalidOperationException > ( ( ) => factory ( Array . Empty < string > ( ) ) ) ;
136
136
}
137
137
138
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
138
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
139
139
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPattern . Program ) ) ]
140
140
public void NoSpecialEntryPointPattern ( )
141
141
{
@@ -145,7 +145,7 @@ public void NoSpecialEntryPointPattern()
145
145
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
146
146
}
147
147
148
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
148
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
149
149
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPattern . Program ) ) ]
150
150
public void NoSpecialEntryPointPatternHostBuilderConfigureHostBuilderCallbackIsCalled ( )
151
151
{
@@ -163,7 +163,7 @@ void ConfigureHostBuilder(object hostBuilder)
163
163
Assert . True ( called ) ;
164
164
}
165
165
166
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
166
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
167
167
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPattern . Program ) ) ]
168
168
public void NoSpecialEntryPointPatternBuildsThenThrowsCallsEntryPointCompletedCallback ( )
169
169
{
@@ -183,7 +183,7 @@ void EntryPointCompleted(Exception? exception)
183
183
Assert . Null ( entryPointException ) ;
184
184
}
185
185
186
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
186
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
187
187
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPatternBuildsThenThrows . Program ) ) ]
188
188
public void NoSpecialEntryPointPatternBuildsThenThrowsCallsEntryPointCompletedCallbackWithException ( )
189
189
{
@@ -203,7 +203,7 @@ void EntryPointCompleted(Exception? exception)
203
203
Assert . NotNull ( entryPointException ) ;
204
204
}
205
205
206
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
206
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
207
207
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPatternThrows . Program ) ) ]
208
208
public void NoSpecialEntryPointPatternThrows ( )
209
209
{
@@ -213,7 +213,7 @@ public void NoSpecialEntryPointPatternThrows()
213
213
Assert . Throws < Exception > ( ( ) => factory ( Array . Empty < string > ( ) ) ) ;
214
214
}
215
215
216
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
216
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
217
217
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPatternExits . Program ) ) ]
218
218
public void NoSpecialEntryPointPatternExits ( )
219
219
{
@@ -223,7 +223,7 @@ public void NoSpecialEntryPointPatternExits()
223
223
Assert . Throws < InvalidOperationException > ( ( ) => factory ( Array . Empty < string > ( ) ) ) ;
224
224
}
225
225
226
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
226
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
227
227
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPatternHangs . Program ) ) ]
228
228
public void NoSpecialEntryPointPatternHangs ( )
229
229
{
@@ -233,7 +233,7 @@ public void NoSpecialEntryPointPatternHangs()
233
233
Assert . Throws < InvalidOperationException > ( ( ) => factory ( Array . Empty < string > ( ) ) ) ;
234
234
}
235
235
236
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
236
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
237
237
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPatternMainNoArgs . Program ) ) ]
238
238
public void NoSpecialEntryPointPatternMainNoArgs ( )
239
239
{
@@ -243,7 +243,7 @@ public void NoSpecialEntryPointPatternMainNoArgs()
243
243
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
244
244
}
245
245
246
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
246
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
247
247
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , "Program" , "TopLevelStatements" ) ]
248
248
public void TopLevelStatements ( )
249
249
{
@@ -254,7 +254,7 @@ public void TopLevelStatements()
254
254
Assert . IsAssignableFrom < IServiceProvider > ( factory ( Array . Empty < string > ( ) ) ) ;
255
255
}
256
256
257
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
257
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
258
258
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , "Program" , "TopLevelStatementsTestsTimeout" ) ]
259
259
public void TopLevelStatementsTestsTimeout ( )
260
260
{
@@ -265,7 +265,7 @@ public void TopLevelStatementsTestsTimeout()
265
265
Assert . Throws < InvalidOperationException > ( ( ) => factory ( Array . Empty < string > ( ) ) ) ;
266
266
}
267
267
268
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
268
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
269
269
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , "Program" , "ApplicationNameSetFromArgument" ) ]
270
270
public void ApplicationNameSetFromArgument ( )
271
271
{
@@ -277,7 +277,7 @@ public void ApplicationNameSetFromArgument()
277
277
Assert . Contains ( "ApplicationNameSetFromArgument" , configuration [ "applicationName" ] ) ;
278
278
}
279
279
280
- [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupported ) ) ]
280
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsThreadingSupportedOrBrowserBackgroundExec ) ) ]
281
281
[ DynamicDependency ( DynamicallyAccessedMemberTypes . All , typeof ( NoSpecialEntryPointPattern . Program ) ) ]
282
282
public void NoSpecialEntryPointPatternCanRunInParallel ( )
283
283
{
0 commit comments