Ejemplo n.º 1
0
        public void QuestionAnswerPairTest()
        {
            this.SchoolNet().LoadWebPage();
            QuestionAnswerPair questionAnswerPair = new QuestionAnswerPair("ctl01", ItemType.Matching);

            Assert.AreEqual("ctl01", questionAnswerPair.UniqueId);
        }
Ejemplo n.º 2
0
    public void SaveQuestion(string customAnswer = null)
    {
        QuestionAnswerPair pair = new QuestionAnswerPair(question.currentQuestionData, string.IsNullOrEmpty(customAnswer) ? answer.text : customAnswer);

        SaveData.questionAnswers.Add(pair);

        questionsNotAsked[question.currentQuestionData.category].Remove(question.currentQuestionData);
        ClearAnswer();
    }
Ejemplo n.º 3
0
        public void ByStemTest()
        {
            this.SchoolNet().LoadWebPage();
            string             uniqueId = "ctl01";
            QuestionAnswerPair form     = new QuestionAnswerPair(uniqueId, ItemType.Matching);

            Assert.AreEqual("By.Id: ctl00_MainContent_EditTestItemControl_pairsRepeator_" + uniqueId + "_ddlStems",
                            form.ByStem.ToString(), "ByStem locator matches");
        }