Esempio n. 1
0
        public void AddQuestion_Work()
        {
            Question question = new Question("id", "test question", new Answer());

            RuleRepository ruleRepository = new RuleRepository();

            ruleRepository.addQuestion(question);
            Assert.True(ruleRepository.GetQuestions().Count == 1);
            Assert.Contains <Question>(question, ruleRepository.GetQuestions());
        }