public void GetFoldingsWithStart()
 {
     AssertList(manager.GetFoldingsWithStart(1), 0);
     AssertList(manager.GetFoldingsWithStart(2), 1);
     AssertList(manager.GetFoldingsWithStart(3), 2);
     AssertList(manager.GetFoldingsWithStart(4));
     AssertList(manager.GetFoldingsWithStart(10), 3, 4);
     AssertList(manager.GetFoldingsWithStart(11), 5);
     AssertList(manager.GetFoldingsWithStart(12), 6);
     AssertList(manager.GetFoldingsWithStart(13));
     AssertList(manager.GetFoldingsWithStart(14));
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(10, 0), 3, 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(10, 1), 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(10, 2), 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(10, 3));
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(10, 4));
 }
Пример #2
0
 public void GetFoldingsWithStart()
 {
     AssertList(manager.GetFoldingsWithStart(lineNumber: 1), 0);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 2), 1);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 3), 2);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 4));
     AssertList(manager.GetFoldingsWithStart(lineNumber: 10), 3, 4);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 11), 5);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 12), 6);
     AssertList(manager.GetFoldingsWithStart(lineNumber: 13));
     AssertList(manager.GetFoldingsWithStart(lineNumber: 14));
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(lineNumber: 10, column: 0), 3, 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(lineNumber: 10, column: 1), 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(lineNumber: 10, column: 2), 4);
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(lineNumber: 10, column: 3));
     AssertList(manager.GetFoldedFoldingsWithStartAfterColumn(lineNumber: 10, column: 4));
 }