public void TestConstructorConsoleDataAvailableEventArgs()
 {
     string str = "test";
     ConsoleDataAvailableEventArgs testConsoleDataAvailableEventArgs = new ConsoleDataAvailableEventArgs(str);
     Assert.IsNotNull(testConsoleDataAvailableEventArgs, "Constructor of type, ConsoleDataAvailableEventArgs failed to create instance.");
     Assert.AreEqual(str, testConsoleDataAvailableEventArgs.Data, "Data is unexpected value.");
 }
 public void TearDown()
 {
     _unitUnderTest = null;
 }
Пример #3
0
 /// <summary>
 /// Event when console is available to write the data.
 /// </summary>
 /// <param name="o">Console</param>
 /// <param name="args">ConsoleDataAvailableEventArgs</param>
 private void Console_ConsoleDataAvailable(object o, ConsoleDataAvailableEventArgs args)
 {
     if (m_form.InvokeRequired)
     {
         m_form.Invoke(new MethodInvoker(delegate() { AppendText(args.Data); } ));
     }
     else
     {
         AppendText(args.Data);
     }
 }
 public void SetUp()
 {
     string str = null;
     _unitUnderTest = new ConsoleDataAvailableEventArgs(str);
 }
Пример #5
0
 void _unitUnderTest_ConsoleDataAvailable(object o, ConsoleDataAvailableEventArgs e)
 {
 }