public void GetFoldingsContainsLineNumber()
 {
     AssertList(manager.GetFoldingsContainsLineNumber(1));
     AssertList(manager.GetFoldingsContainsLineNumber(2), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(3), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(4), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(5));
     AssertList(manager.GetFoldingsContainsLineNumber(10));
     AssertList(manager.GetFoldingsContainsLineNumber(11), 3);
     AssertList(manager.GetFoldingsContainsLineNumber(12), 3, 5);
     AssertList(manager.GetFoldingsContainsLineNumber(13), 3, 5, 6);
     AssertList(manager.GetFoldingsContainsLineNumber(14), 5, 6);
     AssertList(manager.GetFoldingsContainsLineNumber(15), 6);
     AssertList(manager.GetFoldingsContainsLineNumber(16));
 }
예제 #2
0
 public void GetFoldingsContainsLineNumber()
 {
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 1));
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 2), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 3), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 4), 0);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 5));
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 10));
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 11), 3);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 12), 3, 5);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 13), 3, 5, 6);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 14), 5, 6);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 15), 6);
     AssertList(manager.GetFoldingsContainsLineNumber(lineNumber: 16));
 }