public void CanConstruct()
        {
            var args = new ProccessDoneEventArgs(1, true);

            Assert.True(args.ExitCode == 1);
            Assert.True(args.Cancelled);
        }
Esempio n. 2
0
 /// <summary>
 /// Handles this ping module finished event. This turns off the run
 /// timer and animation and notifies the user that the process has
 /// stopped.
 /// </summary>
 /// <param name="sender">
 /// The object sending the event call.
 /// </param>
 /// <param name="e">
 /// The event arguments.
 /// </param>
 private void Pm_ProcessFinished(object sender, ProccessDoneEventArgs e)
 {
     this.SafeToggleStatusAnim(false);
     this.SafeUpdateStatus("Finished");
     this.SafeWriteConsole("Process exit code: " + e.ExitCode.ToString());
     this.SafeToggleToolbarButton(this.toolStripButtonCancel, false);
     this.SafeToggleToolbarButton(this.toolStripButtonExec, true);
     this.SafeToggleTimer(false);
 }