public void GetEstimatedTimeLeftBigProgress() { const double prc = 101.0; Stopwatch sw = Stopwatch.StartNew(); Assert.Throws <ArgumentOutOfRangeException>(() => ProgressHelper.GetEstimatedTimeLeft(prc, sw)); }
public void GetEstimatedTimeLeftNormal() { const double prc = 10.0; Stopwatch sw = Stopwatch.StartNew(); Assert.DoesNotThrow(() => ProgressHelper.GetEstimatedTimeLeft(prc, sw)); }
public void GetEstimatedTimeLeftNullStopwatch() { const double prc = 10.0; Assert.Throws <ArgumentNullException>(() => ProgressHelper.GetEstimatedTimeLeft(prc, null)); }