Exemple #1
0
        public void IsFinishedTest()
        {
            _quiz.ClickStart(5, "Pick up questions randomly");
            for (int i = 0; i < 5; i++)
            {
                Assert.IsFalse(_quiz.IsFinished());
                _quiz.ClickNext();
            }
            Assert.IsTrue(_quiz.IsFinished());

            _quiz.ClickStart(10, "Pick up questions randomly");
            Assert.IsFalse(_quiz.IsFinished());
            _quiz.ClickNext();
            Assert.IsFalse(_quiz.IsFinished());
            _quiz.ClickStop();
            Assert.IsTrue(_quiz.IsFinished());
        }