Ejemplo n.º 1
0
        public void GetEstimatedTimeLeftBigProgress()
        {
            const double prc = 101.0;
            Stopwatch    sw  = Stopwatch.StartNew();

            Assert.Throws <ArgumentOutOfRangeException>(() => ProgressHelper.GetEstimatedTimeLeft(prc, sw));
        }
Ejemplo n.º 2
0
        public void GetEstimatedTimeLeftNormal()
        {
            const double prc = 10.0;
            Stopwatch    sw  = Stopwatch.StartNew();

            Assert.DoesNotThrow(() => ProgressHelper.GetEstimatedTimeLeft(prc, sw));
        }
Ejemplo n.º 3
0
        public void GetEstimatedTimeLeftNullStopwatch()
        {
            const double prc = 10.0;

            Assert.Throws <ArgumentNullException>(() => ProgressHelper.GetEstimatedTimeLeft(prc, null));
        }