public void TestConstructorProgressReportEventArgs()
 {
     int perc = 14;
     ProgressReportEventArgs testProgressReportEventArgs = new ProgressReportEventArgs(perc);
     Assert.IsNotNull(testProgressReportEventArgs, "Constructor of type, ProgressReportEventArgs failed to create instance.");
     Assert.AreEqual(perc, testProgressReportEventArgs.Value, "Value is unexpected value.");
 }
 public void TearDown()
 {
     _unitUnderTest = null;
 }
Esempio n. 3
0
 /// <summary>
 /// Event to change the value of progress bar.
 /// </summary>
 private void ReportManager_ProgressValueUpdated(object o, ProgressReportEventArgs e)
 {
     genericProgressBar.Value = (e.Value == 100 ? 0 : e.Value);
 }
 public void SetUp()
 {
     int perc = 1;
     _unitUnderTest = new ProgressReportEventArgs(perc);
 }
Esempio n. 5
0
 void _unitUnderTest_ProgressValueUpdated(object o, ProgressReportEventArgs e)
 {
 }