Exemple #1
0
 private void onErrorChange(object sender, iModuleOutputEventArgs e)
 {
     output += e.output.ToString();
 }
Exemple #2
0
 private void onErrorChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual(e.output.ToString(), "Unexpected format in arguments");
 }
Exemple #3
0
 /// <summary>
 /// Event is fired when a result code is given to the module.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 private static void onResultChange(object sender,
                                    iModuleOutputEventArgs e)
 {
     // We do not want to print result codes in this shell.
 }
Exemple #4
0
 private void onStandardChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual(e.output.ToString(), "2");
 }
Exemple #5
0
 /// <summary>
 /// Event is fired when the error output changes of a module.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 private static void onErrorOutputChange(object sender,
                                         iModuleOutputEventArgs e)
 {
     Console.WriteLine(e.output);
 }