Example #1
0
        public void TestCheckAnswer()
        {
            Word word = new Word(ConstantWord.CHINESE, ConstantWord.ENGLISH);

            _testModel.SetGetIndex = 0;
            _dictionaryModel       = new DictionaryModel();
            _testModel             = new TestModel(_dictionaryModel);
            _testModel.SetQuestionList(word);
            _testModel.SetGetIndex = ConstantWord.ZERO;
            _testModel.GetQuestion();
            _testModel.CheckAnswer(ConstantWord.CHINESE_ABLE, ConstantWord.CHINESE_ABLE);
            _testModel.CheckAnswer(ConstantWord.CHINESE_ABLE, ConstantWord.CHINESE_ABOUT);
        }