private bool VerifyProgressArgsForTwoHandlers(TestRunAttachmentsProcessingProgressEventArgs args, long handlerIndex, long progress, string uri) { return(progress == args.CurrentAttachmentProcessorProgress && args.CurrentAttachmentProcessorIndex == handlerIndex && args.CurrentAttachmentProcessorUris.First().AbsoluteUri == uri && args.AttachmentProcessorsCount == 2); }
public void EventsHandlerHandleTestRunAttachmentsProcessingProgressShouldSendAttachmentsProcessingProgressMessage() { var args = new TestRunAttachmentsProcessingProgressEventArgs(1, new[] { new System.Uri("http://www.bing.com/") }, 90, 2); handler.HandleTestRunAttachmentsProcessingProgress(args); mockCommunicationManager.Verify(cm => cm.SendMessage(MessageType.TestRunAttachmentsProcessingProgress, It.Is <TestRunAttachmentsProcessingProgressPayload>(p => p.AttachmentsProcessingProgressEventArgs == args))); }
private bool VerifyProgressArgs(TestRunAttachmentsProcessingProgressEventArgs args, int progress) { Assert.AreEqual(1, args.CurrentAttachmentProcessorIndex); Assert.AreEqual(2, args.AttachmentProcessorsCount); Assert.AreEqual(1, args.CurrentAttachmentProcessorUris.Count); Assert.AreEqual(uri1, args.CurrentAttachmentProcessorUris.First().AbsoluteUri); return(progress == args.CurrentAttachmentProcessorProgress); }
/// <inheritdoc/> public void HandleTestRunAttachmentsProcessingProgress(TestRunAttachmentsProcessingProgressEventArgs attachmentsProcessingProgressEventArgs) { var payload = new TestRunAttachmentsProcessingProgressPayload() { AttachmentsProcessingProgressEventArgs = attachmentsProcessingProgressEventArgs, }; this.communicationManager.SendMessage(MessageType.TestRunAttachmentsProcessingProgress, payload); }
public void HandleTestRunAttachmentsProcessingProgress(TestRunAttachmentsProcessingProgressEventArgs AttachmentsProcessingProgressEventArgs) { ProgressArgs.Add(AttachmentsProcessingProgressEventArgs); }