/// <summary> /// Raises the <see cref="ErrorLineReceived"/> event. /// </summary> /// <param name="sender">The event source.</param> /// <param name="e">The line received event arguments.</param> protected void OnErrorLineReceived(object sender, LineReceivedEventArgs e) { if (ErrorLineReceived != null) { ErrorLineReceived(this, e); } }
/// <summary> /// Raises the <see cref="OutputLineReceived"/> event. /// </summary> /// <param name="sender">The event source.</param> /// <param name="e">The line received event arguments.</param> protected void OnOutputLineReceived(object sender, LineReceivedEventArgs e) { if (OutputLineReceived != null) { OutputLineReceived(this, e); } }
void OutputLineReceived(object sender, LineReceivedEventArgs e) { lines.Add(e.Line); }
void process_OutputLineReceived(object sender, LineReceivedEventArgs e) { TaskService.BuildMessageViewCategory.AppendLine(e.Line); }
void LineReceived(object sender, LineReceivedEventArgs e) { SvcUtilMessageView.AppendLine(e.Line); }
public void FireErrorLineReceivedEventFiresEventAndReturnsExpectedLine() { LineReceivedEventArgs expectedEventArgs = null; processRunner.ErrorLineReceived += delegate (object o, LineReceivedEventArgs e) { expectedEventArgs = e; }; string line = "test"; LineReceivedEventArgs eventArgs = new LineReceivedEventArgs(line); processRunner.FireErrorLineReceivedEvent(eventArgs); Assert.AreEqual(line, expectedEventArgs.Line); }
void OutputLineReceived(object source, LineReceivedEventArgs e) { OnMessageReceived(e.Line); }
public void OutputLineTextReceivedFromProcessRunnerIsAddedToMessageCategoryText() { runCommand.Run(); buildProject.FireBuildCompleteEvent(); context.UnitTestCategory.ClearText(); LineReceivedEventArgs firstLineReceived = new LineReceivedEventArgs("first"); processRunner.FireOutputLineReceivedEvent(firstLineReceived); LineReceivedEventArgs secondLineReceived = new LineReceivedEventArgs("second"); processRunner.FireOutputLineReceivedEvent(secondLineReceived); string expectedCategoryText = "first\r\n" + "second\r\n"; Assert.AreEqual(expectedCategoryText, context.UnitTestCategory.Text); }
public void FireErrorLineReceivedEvent(LineReceivedEventArgs e) { if (ErrorLineReceived != null) { ErrorLineReceived(this, e); } }
public void FireOutputLineReceivedEvent(LineReceivedEventArgs e) { if (OutputLineReceived != null) { OutputLineReceived(this, e); } }