@@ -134,7 +134,7 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileWithMermaidDiagramAsync
134134 // create a dummy ILogger instance for testing
135135 var options = new HidiOptions
136136 {
137- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
137+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
138138 Output = new ( $ "{ nameof ( ShowCommandGeneratesMermaidMarkdownFileWithMermaidDiagramAsync ) } .md")
139139 } ;
140140
@@ -149,7 +149,7 @@ public async Task ShowCommandGeneratesMermaidHtmlFileWithMermaidDiagramAsync()
149149 {
150150 var options = new HidiOptions
151151 {
152- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" )
152+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" )
153153 } ;
154154 var filePath = await OpenApiService . ShowOpenApiDocumentAsync ( options , _logger , TestContext . Current . CancellationToken ) ;
155155 Assert . True ( File . Exists ( filePath ) ) ;
@@ -180,23 +180,23 @@ public Task ThrowIfFileDoesNotExistWhenValidatingAsync()
180180 public async Task ValidateCommandProcessesOpenApiAsync ( )
181181 {
182182 // create a dummy ILogger instance for testing
183- await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
183+ await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
184184
185185 Assert . True ( true ) ;
186186 }
187187
188188 [ Fact ]
189189 public async Task ValidFileReturnsTrueAsync ( )
190190 {
191- var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
191+ var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
192192
193193 Assert . True ( isValid ) ;
194194 }
195195
196196 [ Fact ]
197197 public async Task InvalidFileReturnsFalseAsync ( )
198198 {
199- var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Combine ( "UtilityFiles" , "InvalidSampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
199+ var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Join ( "UtilityFiles" , "InvalidSampleOpenApi.yml" ) , _logger , TestContext . Current . CancellationToken ) ;
200200
201201 Assert . False ( isValid ) ;
202202 }
@@ -206,7 +206,7 @@ public async Task CancellingValidationReturnsNullAsync()
206206 {
207207 using var cts = new CancellationTokenSource ( ) ;
208208 await cts . CancelAsync ( ) ;
209- var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , cts . Token ) ;
209+ var isValid = await OpenApiService . ValidateOpenApiDocumentAsync ( Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) , _logger , cts . Token ) ;
210210
211211 Assert . Null ( isValid ) ;
212212 }
@@ -216,7 +216,7 @@ public async Task TransformCommandConvertsOpenApiAsync()
216216 {
217217 var options = new HidiOptions
218218 {
219- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
219+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
220220 Output = new ( $ "{ nameof ( TransformCommandConvertsOpenApiAsync ) } .json") ,
221221 CleanOutput = true ,
222222 TerseOutput = false ,
@@ -236,7 +236,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAsync()
236236 {
237237 var options = new HidiOptions
238238 {
239- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
239+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
240240 CleanOutput = true ,
241241 TerseOutput = false ,
242242 InlineLocal = false ,
@@ -255,7 +255,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
255255 {
256256 var options = new HidiOptions
257257 {
258- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
258+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
259259 Output = new ( $ "{ nameof ( TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchFormatAsync ) } .yml") ,
260260 CleanOutput = true ,
261261 Version = "3.0" ,
@@ -288,10 +288,10 @@ public Task ThrowTransformCommandIfOpenApiAndCsdlAreEmptyAsync()
288288 [ Fact ]
289289 public async Task TransformToPowerShellCompliantOpenApiAsync ( )
290290 {
291- var settingsPath = Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , "UtilityFiles" , "examplepowershellsettings.json" ) ;
291+ var settingsPath = Path . Join ( AppDomain . CurrentDomain . BaseDirectory , "UtilityFiles" , "examplepowershellsettings.json" ) ;
292292 var options = new HidiOptions
293293 {
294- OpenApi = Path . Combine ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
294+ OpenApi = Path . Join ( "UtilityFiles" , "SampleOpenApi.yml" ) ,
295295 Output = new ( $ "{ nameof ( TransformToPowerShellCompliantOpenApiAsync ) } .yaml") ,
296296 CleanOutput = true ,
297297 Version = "3.0" ,
@@ -312,7 +312,7 @@ public async Task TransformToPowerShellCompliantOpenApiAsync()
312312 public async Task InvokeTransformCommandAsync ( )
313313 {
314314 var rootCommand = Program . CreateRootCommand ( ) ;
315- var openapi = Path . Combine ( "." , "UtilityFiles" , "SampleOpenApi.yml" ) ;
315+ var openapi = Path . Join ( "." , "UtilityFiles" , "SampleOpenApi.yml" ) ;
316316 var outputPath = $ "{ nameof ( InvokeTransformCommandAsync ) } .json";
317317 var args = new [ ] { "transform" , "-d" , openapi , "-o" , outputPath , "--co" } ;
318318 var parseResult = rootCommand . Parse ( args ) ;
@@ -329,7 +329,7 @@ public async Task InvokeTransformCommandAsync()
329329 public async Task InvokeShowCommandAsync ( )
330330 {
331331 var rootCommand = Program . CreateRootCommand ( ) ;
332- var openApi = Path . Combine ( "." , "UtilityFiles" , "SampleOpenApi.yml" ) ;
332+ var openApi = Path . Join ( "." , "UtilityFiles" , "SampleOpenApi.yml" ) ;
333333 var outputPath = $ "{ nameof ( InvokeShowCommandAsync ) } .md";
334334 var args = new [ ] { "show" , "-d" , openApi , "-o" , outputPath } ;
335335 var parseResult = rootCommand . Parse ( args ) ;
@@ -345,15 +345,15 @@ public async Task InvokeShowCommandAsync()
345345 public async Task InvokePluginCommandAsync ( )
346346 {
347347 var rootCommand = Program . CreateRootCommand ( ) ;
348- var manifest = Path . Combine ( "." , "UtilityFiles" , "exampleapimanifest.json" ) ;
349- var outputPath = Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , nameof ( InvokePluginCommandAsync ) ) ;
348+ var manifest = Path . Join ( "." , "UtilityFiles" , "exampleapimanifest.json" ) ;
349+ var outputPath = Path . Join ( AppDomain . CurrentDomain . BaseDirectory , nameof ( InvokePluginCommandAsync ) ) ;
350350 var args = new [ ] { "plugin" , "-m" , manifest , "--of" , outputPath } ;
351351 var parseResult = rootCommand . Parse ( args ) ;
352352 var handler = Assert . IsType < AsynchronousCommandLineAction > ( rootCommand . Subcommands . First ( c => c . Name == "plugin" ) . Action , exactMatch : false ) ;
353353
354354 await handler . InvokeAsync ( parseResult , TestContext . Current . CancellationToken ) ;
355355
356- using var jsDoc = JsonDocument . Parse ( await File . ReadAllTextAsync ( Path . Combine ( outputPath , "ai-plugin.json" ) , TestContext . Current . CancellationToken ) ) ;
356+ using var jsDoc = JsonDocument . Parse ( await File . ReadAllTextAsync ( Path . Join ( outputPath , "ai-plugin.json" ) , TestContext . Current . CancellationToken ) ) ;
357357 var openAiManifest = OpenAIPluginManifest . Load ( jsDoc . RootElement ) ;
358358
359359 Assert . NotNull ( openAiManifest ) ;
0 commit comments