Exemplo n.º 1
0
 private void onStandardChange(object sender, iModuleOutputEventArgs e)
 {
     output += e.output.ToString();
 }
Exemplo n.º 2
0
   /// <summary>
   /// Event is fired when the standard output changes of a module.
   /// </summary>
   /// <param name="sender">Sender.</param>
   /// <param name="e">E.</param>
   private static void onStandardOutputChange(object sender, 
 iModuleOutputEventArgs e)
   {
       Console.WriteLine(e.output);
   }
Exemplo n.º 3
0
 private void onStandardChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual (e.output.ToString(), "2");
 }
Exemplo n.º 4
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.
   }
Exemplo n.º 5
0
 private void onErrorChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual (e.output.ToString(), "Unexpected format in arguments");
 }