@@ -14,7 +14,7 @@ public async Task PromptForSelectionAsync_EmptyChoices_ThrowsEmptyChoicesExcepti
1414 {
1515 // Arrange
1616 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
17- var interactionService = new ConsoleInteractionService ( AnsiConsole . Console , executionContext ) ;
17+ var interactionService = new ConsoleInteractionService ( AnsiConsole . Console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
1818 var choices = Array . Empty < string > ( ) ;
1919
2020 // Act & Assert
@@ -27,7 +27,7 @@ public async Task PromptForSelectionsAsync_EmptyChoices_ThrowsEmptyChoicesExcept
2727 {
2828 // Arrange
2929 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
30- var interactionService = new ConsoleInteractionService ( AnsiConsole . Console , executionContext ) ;
30+ var interactionService = new ConsoleInteractionService ( AnsiConsole . Console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
3131 var choices = Array . Empty < string > ( ) ;
3232
3333 // Act & Assert
@@ -48,7 +48,7 @@ public void DisplayError_WithMarkupCharacters_DoesNotCauseMarkupParsingError()
4848 } ) ;
4949
5050 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
51- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
51+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
5252 var errorMessage = "The JSON value could not be converted to <Type>. Path: $.values[0].Type | LineNumber: 0 | BytePositionInLine: 121." ;
5353
5454 // Act - this should not throw an exception due to markup parsing
@@ -73,7 +73,7 @@ public void DisplaySubtleMessage_WithMarkupCharacters_DoesNotCauseMarkupParsingE
7373 } ) ;
7474
7575 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
76- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
76+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
7777 var message = "Path with <brackets> and [markup] characters" ;
7878
7979 // Act - this should not throw an exception due to markup parsing
@@ -98,7 +98,7 @@ public void DisplayLines_WithMarkupCharacters_DoesNotCauseMarkupParsingError()
9898 } ) ;
9999
100100 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
101- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
101+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
102102 var lines = new [ ]
103103 {
104104 ( "stdout" , "Command output with <angle> brackets" ) ,
@@ -129,7 +129,7 @@ public void DisplayMarkdown_WithBasicMarkdown_ConvertsToSpectreMarkup()
129129 } ) ;
130130
131131 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
132- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
132+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
133133 var markdown = "# Header\n This is **bold** and *italic* text with `code`." ;
134134
135135 // Act
@@ -156,7 +156,7 @@ public void DisplayMarkdown_WithPlainText_DoesNotThrow()
156156 } ) ;
157157
158158 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) ) ;
159- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
159+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
160160 var plainText = "This is just plain text without any markdown." ;
161161
162162 // Act
@@ -181,7 +181,7 @@ public async Task ShowStatusAsync_InDebugMode_DisplaysSubtleMessageInsteadOfSpin
181181 } ) ;
182182
183183 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , debugMode : true ) ;
184- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
184+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
185185 var statusText = "Processing request..." ;
186186 var result = "test result" ;
187187
@@ -208,7 +208,7 @@ public void ShowStatus_InDebugMode_DisplaysSubtleMessageInsteadOfSpinner()
208208 } ) ;
209209
210210 var executionContext = new CliExecutionContext ( new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , new DirectoryInfo ( "." ) , debugMode : true ) ;
211- var interactionService = new ConsoleInteractionService ( console , executionContext ) ;
211+ var interactionService = new ConsoleInteractionService ( console , executionContext , TestHelpers . CreateNonCIDetector ( ) ) ;
212212 var statusText = "Processing synchronous request..." ;
213213 var actionCalled = false ;
214214
0 commit comments