@@ -39,7 +39,7 @@ public async Task TestMetadataCommandFromCSProject()
3939
4040 await DotnetApiCatalog . Exec (
4141 new ( new MetadataJsonItemConfig { Dest = _outputFolder , Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } } ) ,
42- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
42+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
4343
4444 CheckResult ( ) ;
4545 }
@@ -53,7 +53,7 @@ public async Task TestMetadataCommandFromDll()
5353
5454 await DotnetApiCatalog . Exec (
5555 new ( new MetadataJsonItemConfig { Dest = _outputFolder , Src = new ( new FileMappingItem ( dllFile ) ) { Expanded = true } } ) ,
56- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
56+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
5757
5858 CheckResult ( ) ;
5959 }
@@ -75,7 +75,7 @@ await DotnetApiCatalog.Exec(
7575 Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } ,
7676 Properties = new ( ) { [ "TargetFramework" ] = "net8.0" } ,
7777 } ) ,
78- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
78+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
7979
8080 CheckResult ( ) ;
8181 }
@@ -95,7 +95,7 @@ public async Task TestMetadataCommandFromVBProject()
9595
9696 await DotnetApiCatalog . Exec (
9797 new ( new MetadataJsonItemConfig { Dest = _outputFolder , Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } } ) ,
98- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
98+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
9999
100100 Assert . True ( File . Exists ( Path . Combine ( _outputFolder , ".manifest" ) ) ) ;
101101
@@ -162,7 +162,7 @@ await DotnetApiCatalog.Exec(
162162 Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } ,
163163 Filter = filterFile ,
164164 } ) ,
165- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
165+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
166166
167167 Assert . True ( File . Exists ( Path . Combine ( _outputFolder , ".manifest" ) ) ) ;
168168
@@ -207,7 +207,7 @@ public async Task TestMetadataCommandFromCSProjectWithDuplicateProjectReference(
207207
208208 await DotnetApiCatalog . Exec (
209209 new ( new MetadataJsonItemConfig { Dest = _outputFolder , Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } } ) ,
210- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
210+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
211211
212212 CheckResult ( ) ;
213213 }
@@ -228,7 +228,7 @@ await DotnetApiCatalog.Exec(
228228 Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } ,
229229 NamespaceLayout = NamespaceLayout . Nested ,
230230 } ) ,
231- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
231+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
232232
233233 var file = Path . Combine ( _outputFolder , "toc.yml" ) ;
234234 Assert . True ( File . Exists ( file ) ) ;
@@ -267,7 +267,7 @@ await DotnetApiCatalog.Exec(
267267 Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } ,
268268 NamespaceLayout = NamespaceLayout . Flattened ,
269269 } ) ,
270- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
270+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
271271
272272 var file = Path . Combine ( _outputFolder , "toc.yml" ) ;
273273 Assert . True ( File . Exists ( file ) ) ;
@@ -306,7 +306,7 @@ await DotnetApiCatalog.Exec(
306306 Src = new ( new FileMappingItem ( projectFile ) ) { Expanded = true } ,
307307 NamespaceLayout = NamespaceLayout . Nested ,
308308 } ) ,
309- new ( ) , Directory . GetCurrentDirectory ( ) ) ;
309+ new ( ) , Directory . GetCurrentDirectory ( ) , cancellationToken : TestContext . Current . CancellationToken ) ;
310310
311311 var file = Path . Combine ( _outputFolder , "toc.yml" ) ;
312312 Assert . True ( File . Exists ( file ) ) ;
0 commit comments