Пример #1
0
        public void ClickStartShowTest()
        {
            _showText.GetParameter(10, 0);
            _showText.ClickStartShow(true);
            Assert.AreEqual(false, _showText.ChangeStartButtonView);
            Assert.AreEqual(true, _showText.ChangeNextButtonView);
            Assert.AreEqual(true, _showText.ChangeStopButtonView);
            Assert.AreEqual(true, _showText.ChangeGroupBox1View);
            Assert.AreEqual(false, _showText.ChangeGroupBox2View);
            Assert.AreEqual(false, _showText.ChangeGroupBox3View);
            Assert.AreEqual(true, _showText.ChangeGroupBox4View);
            Assert.AreEqual(QUESTION + "1" + TOPIC1, _showText.ChangeGroupBox1);
            Assert.AreEqual(null, _showText.ChangeResult);
            Assert.AreEqual("[冠]一個;一種", _showText.ChangeFillBlankTitleChinese);
            Assert.AreEqual("a (1)", _showText.ChangeFillBlankTitleEnglish);

            _showText.GetParameter(10, 1);
            _showText.ClickStartShow(true);
            Assert.AreEqual(false, _showText.ChangeStartButtonView);
            Assert.AreEqual(true, _showText.ChangeNextButtonView);
            Assert.AreEqual(true, _showText.ChangeStopButtonView);
            Assert.AreEqual(false, _showText.ChangeGroupBox1View);
            Assert.AreEqual(true, _showText.ChangeGroupBox2View);
            Assert.AreEqual(false, _showText.ChangeGroupBox3View);
            Assert.AreEqual(QUESTION + "1" + TOPIC2, _showText.ChangeGroupBox2);
            Assert.AreEqual(null, _showText.ChangeResult);
            Assert.AreEqual("a", _showText.ChangeMultipleChoiceTitle);
            Assert.AreEqual(CHOICE1 + "[冠]一個;一種", _showText.ChangeChoiceOne);
            Assert.AreEqual(CHOICE2 + "[片]一些", _showText.ChangeChoiceTwo);
            Assert.AreEqual(CHOICE3 + "[片]一點點", _showText.ChangeChoiceThree);
            Assert.AreEqual(CHOICE4 + "[片]很多", _showText.ChangeChoiceFour);

            _showText.GetParameter(10, 2);
            _showText.ClickStartShow(true);
            Assert.AreEqual(false, _showText.ChangeStartButtonView);
            Assert.AreEqual(true, _showText.ChangeNextButtonView);
            Assert.AreEqual(true, _showText.ChangeStopButtonView);
            Assert.AreEqual(false, _showText.ChangeGroupBox1View);
            Assert.AreEqual(true, _showText.ChangeGroupBox2View);
            Assert.AreEqual(false, _showText.ChangeGroupBox3View);
            Assert.AreEqual(QUESTION + "1" + TOPIC2, _showText.ChangeGroupBox2);
            Assert.AreEqual(null, _showText.ChangeResult);
            Assert.AreEqual("[冠]一個;一種", _showText.ChangeMultipleChoiceTitle);
            Assert.AreEqual(CHOICE1 + "a", _showText.ChangeChoiceOne);
            Assert.AreEqual(CHOICE2 + "a_few", _showText.ChangeChoiceTwo);
            Assert.AreEqual(CHOICE3 + "a_little", _showText.ChangeChoiceThree);
            Assert.AreEqual(CHOICE4 + "a_lot", _showText.ChangeChoiceFour);
        }