public void RangeOrCurrentLine1() { Create("foo"); var res = _rangeUtil.RangeOrCurrentLine(FSharpOption <SnapshotLineRange> .None); Assert.AreEqual(_textView.GetLineRange(0), res); }
public void RangeOrCurrentLine1() { var view = EditorUtil.CreateView("foo"); var res = RangeUtil.RangeOrCurrentLine(view, FSharpOption <SnapshotLineRange> .None); Assert.AreEqual(view.GetLineRange(0), res); }
public void RangeOrCurrentLine2() { Create("foo", "bar"); var mock = new Moq.Mock <ITextView>(Moq.MockBehavior.Strict); var range = _textBuffer.GetLineRange(0); var res = RangeUtil.RangeOrCurrentLine(mock.Object, FSharpOption <SnapshotLineRange> .Some(range)); Assert.AreEqual(range, res); }