public void GetNextBlock_SameBook() { var firstBook = m_books.First(); var firstBlock = firstBook[0]; var secondBlock = firstBook[1]; m_navigator.CurrentBlock = firstBlock; Assert.AreEqual(secondBlock, m_navigator.NextBlock()); }
protected virtual void PopulateRelevantBlocks() { m_navigator.NavigateToFirstBlock(); m_relevantBlocks = new List <BookBlockIndices>(); Block block = m_navigator.CurrentBlock; for (; ;) { if (IsRelevant(block)) { m_relevantBlocks.Add(m_navigator.GetIndices()); RelevantBlockAdded(block); } if (m_navigator.IsLastBlock()) { break; } block = m_navigator.NextBlock(); } m_navigator.NavigateToFirstBlock(); }