Beispiel #1
0
        public void PeekPreviousBlock_SameBook()
        {
            var firstBook   = m_books.First();
            var firstBlock  = firstBook[0];
            var secondBlock = firstBook[1];

            m_navigator.CurrentBlock = secondBlock;
            BookScript currentBook  = m_navigator.CurrentBook;
            Block      currentBlock = m_navigator.CurrentBlock;

            Assert.AreEqual(firstBlock, m_navigator.GetPreviousBlock());
            Assert.AreEqual(currentBlock, m_navigator.CurrentBlock);
            Assert.AreEqual(currentBook, m_navigator.CurrentBook);
        }