public void TestQuestionsRNRN() { var content = "\r\n\r\n"; var q = QAReader.GetQuestions(content); Assert.AreEqual(0, q.Count); }
public void TestQuestionsEmpty() { var content = string.Empty; var q = QAReader.GetQuestions(content); Assert.AreEqual(0, q.Count); }
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]); }
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]); }