public void Complete() { Create("\u3042\u3044\u3046\u3048\u304A"); var span = new SnapshotOverlapSpan(_textBuffer.GetSpan(0, 2)); Assert.Equal("\u3042\u3044", span.GetText()); }
public void Complete() { Create("あいうえお"); var span = new SnapshotOverlapSpan(_textBuffer.GetSpan(0, 2)); Assert.Equal("あい", span.GetText()); }
public void AfterPartial() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(3), beforeSpaces: 0, totalSpaces: 1), new SnapshotOverlapPoint(_textBuffer.GetPoint(4), beforeSpaces: 3, totalSpaces: 4)); Assert.Equal("t ", span.GetText()); }
public void BeforePartial() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(0), beforeSpaces: 1, totalSpaces: 4), new SnapshotOverlapPoint(_textBuffer.GetPoint(2), beforeSpaces: 0, totalSpaces: 1)); Assert.Equal(" c", span.GetText()); }
public void AfterComplete() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(3), before: 0, width: 1), new SnapshotOverlapPoint(_textBuffer.GetPoint(5), before: 0, width: 1)); Assert.Equal("t\t", span.GetText()); }
public void AfterPartial() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(3), beforeSpaces: 0, totalSpaces: 1), new SnapshotOverlapPoint(_textBuffer.GetPoint(4), beforeSpaces: 3, totalSpaces: 4)); Assert.Equal("t ", span.GetText()); }
public void BeforePartial() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(0), beforeSpaces: 1, totalSpaces: 4), new SnapshotOverlapPoint(_textBuffer.GetPoint(2), beforeSpaces: 0, totalSpaces: 1)); Assert.Equal(" c", span.GetText()); }
public void AfterComplete() { Create("\tcat\t"); var span = new SnapshotOverlapSpan( new SnapshotOverlapPoint(_textBuffer.GetPoint(3), before: 0, width: 1), new SnapshotOverlapPoint(_textBuffer.GetPoint(5), before: 0, width: 1)); Assert.Equal("t\t", span.GetText()); }
public void Complete() { Create("\u3042\u3044\u3046\u3048\u304A"); var span = new SnapshotOverlapSpan(_textBuffer.GetSpan(0, 2)); Assert.Equal("\u3042\u3044", span.GetText()); }
public void Complete() { Create("あいうえお"); var span = new SnapshotOverlapSpan(_textBuffer.GetSpan(0, 2)); Assert.Equal("あい", span.GetText()); }