Exemplo n.º 1
0
        public void TestAnswersRNRNRN()
        {
            var content = "\r\n\r\n\r\n";
            var a       = QAReader.GetAnswers(content);

            Assert.AreEqual(0, a.Count);
        }
Exemplo n.º 2
0
        public void TestAnswersOnlyQuestionRNRNRN()
        {
            var content = "antwort1\r\n\r\n\r\n";
            var a       = QAReader.GetAnswers(content);

            Assert.AreEqual(0, a.Count);
        }
Exemplo n.º 3
0
        public void TestAnswersWithoutQuestions()
        {
            var content = "\r\nantwort1";
            var a       = QAReader.GetAnswers(content);

            Assert.AreEqual(1, a.Count);
            Assert.AreEqual("antwort1", a[0]);
        }
Exemplo n.º 4
0
        public void TestAnswersWithComment()
        {
            var content = "frage1\r\nfrage2\r\n\nantwort1\r\n\r\ntest";
            var a       = QAReader.GetAnswers(content);

            Assert.AreEqual(1, a.Count);
            Assert.AreEqual("antwort1", a[0]);
        }
Exemplo n.º 5
0
        public void TestAnswersNoQuestionsMultipleAnswers()
        {
            var content = "\r\nantwort1\r\nantwort2\n";
            var a       = QAReader.GetAnswers(content);

            Assert.AreEqual(2, a.Count);
            Assert.AreEqual("antwort1", a[0]);
            Assert.AreEqual("antwort2", a[1]);
        }