Example #1
0
        public void GetAnswerChoicesLetters_None()
        {
            exampleQuestion.QuestionText = $"What is this?";

            var choicesLetters = QuestionWithChoicesTools.GetAnswerChoicesLetters(exampleQuestion);

            Assert.Empty(choicesLetters);
        }
Example #2
0
        public void GetAnswerChoicesLetters_Normal()
        {
            exampleQuestion.QuestionText = $"What is this?{acd}A{ltd}some text{acd}B{ltd}some text{acd}C{ltd}some text";

            var choicesLetters = QuestionWithChoicesTools.GetAnswerChoicesLetters(exampleQuestion);

            var expected = new string[] { "A", "B", "C" };

            Assert.True(expected.SequenceEqual(choicesLetters));
        }