public void VocabularyPresentationModelConstructorTest()
        {
            VocabularyMode vocabularyModes = new VocabularyMode();;  // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(vocabularyModes);

            Assert.AreEqual(vocabularyModes, target._vocabularyMode);
        }
        public void ProcessFillQuestionTest()
        {
            VocabularyMode param0 = new VocabularyMode();                                                   // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            target.ProcessFillQuestion();
            Assert.IsTrue(target.IsFillQuestionTableLayoutPanelVisiabled);
            Assert.IsFalse(target.IsSelectionQuestionTableLayoutPanelVisabled);
            Assert.IsTrue(target.QuestionGroupBoxText.Contains("Fill in the Blanks"));
        }
        public void InitializeToolStripMenuItemsTest()
        {
            VocabularyMode param0 = new VocabularyMode();
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            target.InitializeToolStripMenuItems();
            Assert.IsTrue(target.StartToolStripMenuItemEnabled);
            Assert.IsFalse(target.NextTooStripMenuItemEnabled);
            Assert.IsFalse(target.StopTooStripMenuItemEnabled);
        }
        public void UnCheckAndEnableAllQuestionTypeSubtManuItemTest()
        {
            VocabularyMode vocabularyModes = new VocabularyMode();                                                   // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(vocabularyModes); // TODO: 初始化為適當值

            target.UnCheckAndEnableAllQuestionTypeSubtManuItem();
            Assert.IsFalse(target.AllFillInTheBlankQuestionsToolStripMenuItemChecked);
            Assert.IsTrue(target.AllFillInTheBlankQuestionsToolStripMenuItemEnabled);
            Assert.IsFalse(target.AllListeningComprehensionMultipleChoiceQuestionsToolStripMenuItemChecked);
            Assert.IsTrue(target.AllListeningComprehensionMultipleChoiceQuestionsToolStripMenuItemEnabled);
            Assert.IsFalse(target.PickUpQuestionsRandomlyToolStripMenuItemChecked);
            Assert.IsTrue(target.PickUpQuestionsRandomlyToolStripMenuItemEnabled);
        }
        public void ProcessSelectionQuestionTest()
        {
            VocabularyMode param0 = new VocabularyMode();                                                   // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            target.ProcessSelectionQuestion();
            Assert.AreEqual("(1) " + target._selection[0], target.FirstRadioButtonText);
            Assert.AreEqual("(2) " + target._selection[1], target.SecondRadioButtonText);
            Assert.AreEqual("(3) " + target._selection[2], target.ThirdRadioButtonText);
            Assert.AreEqual("(4) " + target._selection[3], target.FourthRadioButtonText);
            Assert.IsTrue(target._isSelectionQuestionTableLayoutPanelVisabled);
            Assert.IsFalse(target._isFillQuestionTableLayoutPanelVisiabled);
            Assert.IsTrue(target.QuestionGroupBoxText.Contains("Listehning Comprehension Multiple Choice Question"));
        }
        public void PressStartButtonTest()
        {
            VocabularyMode vocabularyModes = new VocabularyMode();                                                   // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(vocabularyModes); // TODO: 初始化為適當值
            int numberOfQuestions = 5;                                                                               // TODO: 初始化為適當值
            int questionType      = 0;                                                                               // TODO: 初始化為適當值

            target.PressStartButton(numberOfQuestions, questionType);
            Assert.IsFalse(target.IsStartButtonEnabled);
            Assert.IsFalse(target.StartToolStripMenuItemEnabled);
            Assert.IsTrue(target.IsStopButtonEnabled);
            Assert.IsTrue(target.StopTooStripMenuItemEnabled);
            Assert.IsTrue(target.IsNextButtonEnabled);
            Assert.IsTrue(target.NextTooStripMenuItemEnabled);
            Assert.IsTrue(target.IsStartTest);
        }
        public void ProcessEndQuestionTest()
        {
            VocabularyMode param0 = new VocabularyMode();                                                   // TODO: 初始化為適當值
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            target.Initialize();
            target.PressStartButton(10, 0);
            for (int i = 0; i < 2; i++)
            {
                target.PressNextButton(param0.FillAnswer, 0);
            }
            target.ProcessEndQuestion();
            Assert.IsFalse(target.IsStartTest);
            Assert.IsFalse(target.IsSelectionQuestionTableLayoutPanelVisabled);
            Assert.IsFalse(target.IsFillQuestionTableLayoutPanelVisiabled);
            Assert.AreEqual("得分: 20% (2/10)", target.MessageBoxText);
        }
        public void InitializeTest()
        {
            VocabularyMode param0 = new VocabularyMode();
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            target.Initialize();
            Assert.IsTrue(target.IsStartButtonEnabled);
            Assert.IsTrue(target.StartToolStripMenuItemEnabled);
            Assert.IsFalse(target.IsNextButtonEnabled);
            Assert.IsFalse(target.NextTooStripMenuItemEnabled);
            Assert.IsFalse(target.StopTooStripMenuItemEnabled);
            Assert.IsFalse(target.IsStopButtonEnabled);
            Assert.IsTrue(target.IsChooseNumberOfQuestionLayoutPanelVisiabled);
            Assert.IsFalse(target.IsFillQuestionTableLayoutPanelVisiabled);
            Assert.IsFalse(target.IsSelectionQuestionTableLayoutPanelVisabled);
            Assert.AreEqual("Customize Your Examination", target.QuestionGroupBoxText);
            Assert.AreEqual("00:00:00", target.TimeLabelText);
        }
        public void CreateQuestionTest()
        {
            VocabularyMode param0 = new VocabularyMode();
            VocabularyPresentationModel_Accessor target = new VocabularyPresentationModel_Accessor(param0); // TODO: 初始化為適當值

            param0.Initialize();
            param0.QuestionType = 0;
            param0.CreateQuestionType();
            target.CreateQuestion();
            Assert.IsTrue(target.IsAnswerTextBoxEnabled);
            Assert.AreEqual(true, target.QuestionGroupBoxText.Contains("Fill in the Blanks"));
            Assert.AreEqual(false, target._isSelectionQuestionTableLayoutPanelVisabled);
            Assert.AreEqual(true, target._isFillQuestionTableLayoutPanelVisiabled);
            Assert.AreEqual("", target.AnswerTextBoxText);
            Assert.AreEqual(param0.FillQuestion, target.QuestionLabelText);
            param0.QuestionType = 1;
            param0.CreateQuestionType();
            target.CreateQuestion();
            Assert.AreEqual(true, target.QuestionGroupBoxText.Contains("Listehning Comprehension Multiple Choice Question"));
            Assert.AreEqual(true, target._isSelectionQuestionTableLayoutPanelVisabled);
            Assert.AreEqual(false, target._isFillQuestionTableLayoutPanelVisiabled);
            Assert.IsFalse(target.IsAnswerTextBoxEnabled);
        }