示例#1
0
            public void AddBeforeLine()
            {
                Create("cat", "dog", "fish");
                var original = new SnapshotColumnLegacy(_textBuffer.GetLine(1).Start);
                var column   = original.Add(-3);

                Assert.Equal(2, column.Column);
                Assert.Equal(0, column.LineNumber);
            }
示例#2
0
            public void AddNextLine()
            {
                Create("cat", "dog", "fish");
                var original = new SnapshotColumnLegacy(_textBuffer.GetPoint(0));
                var column   = original.Add(5);

                Assert.Equal(0, column.Column);
                Assert.Equal(1, column.LineNumber);
            }