private void ProcessEndQuestion() //結束測驗問題所做的處理 { _messageBoxText = SCORE_CHINESE + _vocabularyMode.Score.ToString(DOUBLE_SHOW_FORMAT) + PERCENTAGE_SYMBOLE + BLANK + LEFT_BRACKETS + _vocabularyMode.NumberOfCorrect.ToString() + LEFT_DIAGONAL + _vocabularyMode.NumberOfQuestion.ToString() + RIGHT_BRACKETS; _vocabularyMode.Initialize(); Initialize(); _isChooseNumberOfQuestionLayoutPanelVisiabled = true; _isStartTest = false; }
private VocabularyMode _vocabularyMode; //宣告 Model #endregion Fields #region Constructors //建構元 public VocabularyPresentationModel(VocabularyMode vocabularyModes) { this._vocabularyMode = vocabularyModes; _vocabularyMode.Initialize(); Initialize(); }
public void SpeechSelectionQuestionTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 target.Initialize(); target.CreateNewSelectionQuestion(); target.SpeechSelectionQuestion(); }
public void GetNumberOfVocabularyTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 int expected = 2074; // TODO: 初始化為適當值 target.Initialize(); int actual; actual = target.NumberOfVocabulary; Assert.AreEqual(expected, actual); }
public VocabularyPresentationModel(VocabularyMode vocabularyModes) //建構元 { this._vocabularyMode = vocabularyModes; _vocabularyMode.Initialize(); Initialize(); }