Beispiel #1
0
        public void TestQuestionsRNRN()
        {
            var content = "\r\n\r\n";
            var q       = QAReader.GetQuestions(content);

            Assert.AreEqual(0, q.Count);
        }
Beispiel #2
0
        public void TestQuestionsEmpty()
        {
            var content = string.Empty;
            var q       = QAReader.GetQuestions(content);

            Assert.AreEqual(0, q.Count);
        }
Beispiel #3
0
        public void TestQuestionsWithAnswers()
        {
            var content = "frage1\r\nfrage2\r\n\nantwort1\r\n\r\ntest";
            var q       = QAReader.GetQuestions(content);

            Assert.AreEqual(2, q.Count);
            Assert.AreEqual("frage1", q[0]);
            Assert.AreEqual("frage2", q[1]);
        }
Beispiel #4
0
        public void TestQuestionsNoRN()
        {
            var content = "frage1\r\nfrage2";
            var q       = QAReader.GetQuestions(content);

            Assert.AreEqual(2, q.Count);
            Assert.AreEqual("frage1", q[0]);
            Assert.AreEqual("frage2", q[1]);
        }