@@ -74,7 +74,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachmentsT
7474 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
7575 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
7676
77- VerifyMetrics ( 0 , 0 ) ;
77+ VerifyMetrics ( inputCount : 0 , outputCount : 0 ) ;
7878 }
7979
8080 [ TestMethod ]
@@ -93,7 +93,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnNoAttachments_IfNoA
9393 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
9494 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
9595
96- VerifyMetrics ( 0 , 0 ) ;
96+ VerifyMetrics ( inputCount : 0 , outputCount : 0 ) ;
9797 }
9898
9999 [ TestMethod ]
@@ -117,7 +117,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturn1NotProcessedAttach
117117 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
118118 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
119119
120- VerifyMetrics ( 1 , 1 ) ;
120+ VerifyMetrics ( inputCount : 1 , outputCount : 1 ) ;
121121 }
122122
123123 [ TestMethod ]
@@ -140,7 +140,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturn1NotProcessedAttach
140140 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
141141 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
142142
143- VerifyMetrics ( 1 , 1 ) ;
143+ VerifyMetrics ( inputCount : 1 , outputCount : 1 ) ;
144144 }
145145
146146 [ TestMethod ]
@@ -171,7 +171,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturn1ProcessedAttachmen
171171 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
172172 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
173173
174- VerifyMetrics ( 1 , 1 ) ;
174+ VerifyMetrics ( inputCount : 1 , outputCount : 1 ) ;
175175 }
176176
177177 [ TestMethod ]
@@ -203,7 +203,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturn1ProcessedAttachmen
203203 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
204204 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
205205
206- VerifyMetrics ( 1 , 1 ) ;
206+ VerifyMetrics ( inputCount : 1 , outputCount : 1 ) ;
207207 }
208208
209209 [ TestMethod ]
@@ -229,7 +229,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachmentsT
229229 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
230230 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
231231
232- VerifyMetrics ( 1 , 1 , "Failed" ) ;
232+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Failed" ) ;
233233 }
234234
235235 [ TestMethod ]
@@ -254,7 +254,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachments_
254254 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
255255 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
256256
257- VerifyMetrics ( 1 , 1 , "Failed" ) ;
257+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Failed" ) ;
258258 }
259259
260260 [ TestMethod ]
@@ -277,8 +277,8 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachmentsT
277277 mockAttachmentHandler2 . Verify ( h => h . GetExtensionUris ( ) , Times . Never ) ;
278278 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
279279 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
280-
281- VerifyMetrics ( 1 , 1 , "Canceled" ) ;
280+
281+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Canceled" ) ;
282282 }
283283
284284 [ TestMethod ]
@@ -302,7 +302,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachments_
302302 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
303303 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
304304
305- VerifyMetrics ( 1 , 1 , "Canceled" ) ;
305+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Canceled" ) ;
306306 }
307307
308308 [ TestMethod ]
@@ -343,7 +343,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnProcessedAttachment
343343 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 2 && c . Contains ( inputAttachments [ 0 ] ) && c . Contains ( inputAttachments [ 1 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
344344 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 2 && c . Contains ( inputAttachments [ 2 ] ) && c . Contains ( inputAttachments [ 3 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
345345
346- VerifyMetrics ( 5 , 3 ) ;
346+ VerifyMetrics ( inputCount : 5 , outputCount : 3 ) ;
347347 }
348348
349349 [ TestMethod ]
@@ -385,7 +385,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnProcessedAttachment
385385 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 2 && c . Contains ( inputAttachments [ 0 ] ) && c . Contains ( inputAttachments [ 1 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
386386 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 2 && c . Contains ( inputAttachments [ 2 ] ) && c . Contains ( inputAttachments [ 3 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
387387
388- VerifyMetrics ( 5 , 3 ) ;
388+ VerifyMetrics ( inputCount : 5 , outputCount : 3 ) ;
389389 }
390390
391391 [ TestMethod ]
@@ -450,7 +450,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachmentsT
450450 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
451451 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
452452
453- VerifyMetrics ( 1 , 1 , "Canceled" ) ;
453+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Canceled" ) ;
454454 }
455455
456456 [ TestMethod ]
@@ -510,7 +510,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnInitialAttachments_
510510 mockAttachmentHandler1 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . Is < ICollection < AttachmentSet > > ( c => c . Count == 1 && c . Contains ( inputAttachments [ 0 ] ) ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , cancellationTokenSource . Token ) ) ;
511511 mockAttachmentHandler2 . Verify ( h => h . ProcessAttachmentSetsAsync ( It . IsAny < ICollection < AttachmentSet > > ( ) , It . IsAny < IProgress < int > > ( ) , It . IsAny < IMessageLogger > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Never ) ;
512512
513- VerifyMetrics ( 1 , 1 , "Canceled" ) ;
513+ VerifyMetrics ( inputCount : 1 , outputCount : 1 , status : "Canceled" ) ;
514514 }
515515
516516 [ TestMethod ]
@@ -584,7 +584,7 @@ public async Task ProcessTestRunAttachmentsAsync_ShouldReturnProperlySendProgres
584584 mockEventsHandler . Verify ( h => h . HandleLogMessage ( TestMessageLevel . Informational , "info" ) ) ;
585585 mockEventsHandler . Verify ( h => h . HandleLogMessage ( TestMessageLevel . Error , "error" ) ) ;
586586
587- VerifyMetrics ( 2 , 2 , "Completed" ) ;
587+ VerifyMetrics ( inputCount : 2 , outputCount : 2 ) ;
588588 }
589589
590590 private void VerifyMetrics ( int inputCount , int outputCount , string status = "Completed" )
0 commit comments