Beispiel #1
0
            public void GetLine_AdjustmentOnCurrent()
            {
                Create("cat", "dog", "bear");
                var range = _interpreter.GetLine(LineSpecifier.NewAdjustmentOnCurrent(1));

                Assert.Equal(_textBuffer.GetLine(1).LineNumber, range.Value.LineNumber);
            }
Beispiel #2
0
 /// <summary>
 /// LineSpecifier as PreviousLineWithPattern
 /// </summary>
 public static LineSpecifier.PreviousLineWithPattern AsPreviousLineWithPattern(this LineSpecifier lineSpecifier)
 {
     return((LineSpecifier.PreviousLineWithPattern)lineSpecifier);
 }
Beispiel #3
0
 /// <summary>
 /// Is thise a Number with the specified value
 /// </summary>
 public static bool IsNumber(this LineSpecifier lineSpecifier, int number)
 {
     return(lineSpecifier.IsNumber && lineSpecifier.AsNumber().Item == number);
 }
Beispiel #4
0
 /// <summary>
 /// LineSpecifier as NextLineWithPattern
 /// </summary>
 public static LineSpecifier.NextLineWithPattern AsNextLineWithPattern(this LineSpecifier lineSpecifier)
 {
     return((LineSpecifier.NextLineWithPattern)lineSpecifier);
 }
Beispiel #5
0
 /// <summary>
 /// LineSpecifier as Number
 /// </summary>
 public static LineSpecifier.Number AsNumber(this LineSpecifier lineSpecifier)
 {
     return((LineSpecifier.Number)lineSpecifier);
 }