public void ShouldBeAbleToGetLaneCount() { _revisionGraph.CacheTo(_revisionGraph.Count, _revisionGraph.Count); Assert.AreEqual(1, _revisionGraph.GetSegmentsForRow(0).GetLaneCount()); Assert.AreEqual(1, _revisionGraph.GetSegmentsForRow(1).GetLaneCount()); Assert.AreEqual(2, _revisionGraph.GetSegmentsForRow(2).GetLaneCount()); Assert.AreEqual(2, _revisionGraph.GetSegmentsForRow(3).GetLaneCount()); Assert.AreEqual(1, _revisionGraph.GetSegmentsForRow(4).GetLaneCount()); Assert.AreEqual(1, _revisionGraph.GetSegmentsForRow(5).GetLaneCount()); }
private void Render() { for (int i = 0; i < _numberOfRevisionsAddedPerRun / 10; i++) { var pageStart = _random.Next(_revisionGraph.Count); for (int j = pageStart; j < pageStart + 4; j++) { // Simulate render commit message _revisionGraph.GetNodeForRow(j); // Simulate render graph _revisionGraph.GetSegmentsForRow(j)?.GetLaneCount(); } } }