Beispiel #1
0
 private void AddTestResult(ITestPackage package, TestResult result)
 {
     if (result.Sucseed)
     {
         ListViewItem newItem = listViewResults.Items.Add(string.Format("{0} {1} {2}", package.OfficeProduct, package.Name, package.Language));
         newItem.SubItems.Add(string.Format("Test passed in {0}. {1}", result.TimeElapsed, result.Hints));
         newItem.StateImageIndex = 0;
     }
     else
     {
         ListViewItem newItem = listViewResults.Items.Add(string.Format("{0} {1} {2}", package.OfficeProduct, package.Name, package.Language));
         newItem.SubItems.Add(string.Format("Test failed. Message:{0}.", result.ErrorInfo));
         newItem.Tag = result.Exception;
         newItem.StateImageIndex = 1;
     }
     listViewResults.Refresh();
 }
Beispiel #2
0
 private void AddTestResult(ITestPackage package, TestResult result)
 {
     if (result.Sucseed)
     {
         ListViewItem newItem = listViewResults.Items.Add(string.Format("{0} {1} {2}", package.OfficeProduct, package.Name, package.Language));
         newItem.SubItems.Add(string.Format("Test passed in {0}. {1}", result.TimeElapsed, result.Hints));
         newItem.StateImageIndex = 0;
     }
     else
     {
         ListViewItem newItem = listViewResults.Items.Add(string.Format("{0} {1} {2}", package.OfficeProduct, package.Name, package.Language));
         newItem.SubItems.Add(string.Format("Test failed. Message:{0}.", result.ErrorInfo));
         newItem.Tag             = result.Exception;
         newItem.StateImageIndex = 1;
     }
     listViewResults.Refresh();
 }
Beispiel #3
0
 private void ShowCurrentTestPackge(ITestPackage package)
 {
     labelCurrentTest.Text = "Do Test: " + string.Format("{0} {1} {2} {3}", package.OfficeProduct, package.Name, package.Language, package.Description);
     labelCurrentTest.Refresh();
 }
Beispiel #4
0
 private void ShowCurrentTestPackge(ITestPackage package)
 {
     labelCurrentTest.Text = "Do Test: " + string.Format("{0} {1} {2} {3}", package.OfficeProduct, package.Name, package.Language, package.Description);
     labelCurrentTest.Refresh();
 }