예제 #1
0
 private void onStandardChange(object sender, iModuleOutputEventArgs e)
 {
     output += e.output.ToString();
 }
예제 #2
0
파일: Program.cs 프로젝트: hazardfn/ConSim
   /// <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);
   }
예제 #3
0
 private void onStandardChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual (e.output.ToString(), "2");
 }
예제 #4
0
파일: Program.cs 프로젝트: hazardfn/ConSim
   /// <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.
   }
예제 #5
0
 private void onErrorChange(object sender, iModuleOutputEventArgs e)
 {
     Assert.AreEqual (e.output.ToString(), "Unexpected format in arguments");
 }