Exemplo n.º 1
0
 public void TestConstructorStatusUpdateEventArgs()
 {
     Ecell.StatusBarMessageKind type = StatusBarMessageKind.QuickInspector;
     string text = "Statud";
     StatusUpdateEventArgs testStatusUpdateEventArgs = new StatusUpdateEventArgs(type, text);
     Assert.IsNotNull(testStatusUpdateEventArgs, "Constructor of type, StatusUpdateEventArgs failed to create instance.");
     Assert.AreEqual(text, testStatusUpdateEventArgs.Text, "Text is unexpected value.");
     Assert.AreEqual(type, testStatusUpdateEventArgs.Type, "Type is unexpected value.");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Event when the status of ReportManager is updated.
 /// </summary>
 /// <param name="o">ReportManager.</param>
 /// <param name="e">StatusUpdateEventArgs</param>
 private void ReportManager_StatusUpdated(object o, StatusUpdateEventArgs e)
 {
     bool isExeDoEvents = false;
     switch (e.Type)
     {
         case StatusBarMessageKind.Generic:
             isExeDoEvents = !genericStatusText.Text.Equals(e.Text);
             genericStatusText.Text = e.Text;
             break;
         case StatusBarMessageKind.QuickInspector:
             quickInspectorText.Text = e.Text;
             break;
     }
     if (isExeDoEvents)
         Application.DoEvents();
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     Ecell.StatusBarMessageKind type = StatusBarMessageKind.Generic;
     string text = null;
     _unitUnderTest = new StatusUpdateEventArgs(type, text);
 }
Exemplo n.º 4
0
 public void TearDown()
 {
     _unitUnderTest = null;
 }
Exemplo n.º 5
0
 void _unitUnderTest_StatusUpdated(object o, StatusUpdateEventArgs e)
 {
 }