Beispiel #1
0
        public void GoToTest()
        {
            IReadingSession rs = CreateReadingSession();

            rs.Next("A1");
            rs.Next("A2");

            rs.GoTo(1);

            Assert.AreEqual("P2", rs.Paragraph);
        }
        public void TestUS7_4()
        {
            IReadingSession rs = CreateReadingSession();
            IParagraphsBoxViewModel pbvm = new ParagraphsBoxViewModel(rs);
            IList<string> listpara = new List<string>()
            {
                pbvm.ParagraphSelected,
                "Paragraphe 1 : Lorem ipsum dolor sit amet, consect..."
            };

            rs.Next("A1");
            rs.Next("A2");
            rs.Back();
            rs.GoTo(0);

            SameContent(listpara, pbvm.ParagraphVisited);
        }