@@ -32,31 +32,31 @@ public BasicCommandProcessorTests()
3232 public void Constructor_WithNullCdbSession_ThrowsArgumentNullException ( )
3333 {
3434 // Act & Assert
35- Assert . Throws < ArgumentNullException > ( ( ) =>
35+ Assert . Throws < ArgumentNullException > ( ( ) =>
3636 new BasicCommandProcessor ( null ! , _mockLogger . Object , _config , _activeCommands ) ) ;
3737 }
3838
3939 [ Fact ]
4040 public void Constructor_WithNullLogger_ThrowsArgumentNullException ( )
4141 {
4242 // Act & Assert
43- Assert . Throws < ArgumentNullException > ( ( ) =>
43+ Assert . Throws < ArgumentNullException > ( ( ) =>
4444 new BasicCommandProcessor ( _mockCdbSession . Object , null ! , _config , _activeCommands ) ) ;
4545 }
4646
4747 [ Fact ]
4848 public void Constructor_WithNullConfig_ThrowsArgumentNullException ( )
4949 {
5050 // Act & Assert
51- Assert . Throws < ArgumentNullException > ( ( ) =>
51+ Assert . Throws < ArgumentNullException > ( ( ) =>
5252 new BasicCommandProcessor ( _mockCdbSession . Object , _mockLogger . Object , null ! , _activeCommands ) ) ;
5353 }
5454
5555 [ Fact ]
5656 public void Constructor_WithNullActiveCommands_ThrowsArgumentNullException ( )
5757 {
5858 // Act & Assert
59- Assert . Throws < ArgumentNullException > ( ( ) =>
59+ Assert . Throws < ArgumentNullException > ( ( ) =>
6060 new BasicCommandProcessor ( _mockCdbSession . Object , _mockLogger . Object , _config , null ! ) ) ;
6161 }
6262
@@ -95,7 +95,7 @@ public async Task ProcessCommandQueueAsync_WithSingleCommand_ProcessesSuccessful
9595 var cancellationTokenSource = new CancellationTokenSource ( ) ;
9696 var completionSource = new TaskCompletionSource < string > ( ) ;
9797 var queuedCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow , completionSource , cancellationTokenSource ) ;
98-
98+
9999 commandQueue . Add ( queuedCommand ) ;
100100 commandQueue . CompleteAdding ( ) ;
101101
@@ -122,7 +122,7 @@ public async Task ProcessCommandQueueAsync_WithFailingCommand_HandlesFailure()
122122 var cancellationTokenSource = new CancellationTokenSource ( ) ;
123123 var completionSource = new TaskCompletionSource < string > ( ) ;
124124 var queuedCommand = new QueuedCommand ( "cmd-1" , "!invalid" , DateTime . UtcNow , completionSource , cancellationTokenSource ) ;
125-
125+
126126 commandQueue . Add ( queuedCommand ) ;
127127 commandQueue . CompleteAdding ( ) ;
128128
@@ -150,7 +150,7 @@ public async Task ProcessCommandQueueAsync_WithCancelledCommand_HandlesCancellat
150150 var commandCancellationTokenSource = new CancellationTokenSource ( ) ;
151151 var completionSource = new TaskCompletionSource < string > ( ) ;
152152 var queuedCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow , completionSource , commandCancellationTokenSource ) ;
153-
153+
154154 commandQueue . Add ( queuedCommand ) ;
155155 commandQueue . CompleteAdding ( ) ;
156156
@@ -179,7 +179,7 @@ public async Task ProcessCommandQueueAsync_WithServiceShutdown_HandlesCancellati
179179 var commandCancellationTokenSource = new CancellationTokenSource ( ) ;
180180 var completionSource = new TaskCompletionSource < string > ( ) ;
181181 var queuedCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow , completionSource , commandCancellationTokenSource ) ;
182-
182+
183183 commandQueue . Add ( queuedCommand ) ;
184184 commandQueue . CompleteAdding ( ) ;
185185
@@ -194,7 +194,7 @@ public async Task ProcessCommandQueueAsync_WithServiceShutdown_HandlesCancellati
194194
195195 // Act - Start processing and then cancel the service
196196 var processingTask = _processor . ProcessCommandQueueAsync ( commandQueue , serviceCancellationTokenSource . Token ) ;
197-
197+
198198 // Cancel the service after a short delay to allow processing to start
199199 await Task . Delay ( 100 ) ;
200200 serviceCancellationTokenSource . Cancel ( ) ;
@@ -239,7 +239,7 @@ public void TriggerCleanup_RemovesCompletedCommands()
239239 var completionSource = new TaskCompletionSource < string > ( ) ;
240240 var cancellationTokenSource = new CancellationTokenSource ( ) ;
241241 var oldCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow . AddHours ( - 2 ) , completionSource , cancellationTokenSource , CommandState . Completed ) ;
242-
242+
243243 _activeCommands [ "cmd-1" ] = oldCommand ;
244244
245245 // Act
@@ -256,7 +256,7 @@ public void TriggerCleanup_KeepsRecentCommands()
256256 var completionSource = new TaskCompletionSource < string > ( ) ;
257257 var cancellationTokenSource = new CancellationTokenSource ( ) ;
258258 var recentCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow , completionSource , cancellationTokenSource , CommandState . Completed ) ;
259-
259+
260260 _activeCommands [ "cmd-1" ] = recentCommand ;
261261
262262 // Act
@@ -273,7 +273,7 @@ public void TriggerCleanup_KeepsExecutingCommands()
273273 var completionSource = new TaskCompletionSource < string > ( ) ;
274274 var cancellationTokenSource = new CancellationTokenSource ( ) ;
275275 var executingCommand = new QueuedCommand ( "cmd-1" , "!analyze -v" , DateTime . UtcNow . AddHours ( - 2 ) , completionSource , cancellationTokenSource , CommandState . Executing ) ;
276-
276+
277277 _activeCommands [ "cmd-1" ] = executingCommand ;
278278
279279 // Act
0 commit comments