Пример #1
0
        public void TryParseText_ShouldReturnFalse_WhenBeginEqualsEnd()
        {
            Token token;

            TokenReader.TryParseText("some text", 10, 10, out token).Should().BeFalse();
        }
Пример #2
0
        public void TryParseText_ShouldReturnFalse_WhenEndGreaterThenInputLength()
        {
            Token token;

            TokenReader.TryParseText("some text", 2, 100, out token).Should().BeFalse();
        }
Пример #3
0
 public bool IsNumberWithUnderlines_ShouldReturnCorrectResult_When(string input, int begin, int end)
 {
     return(TokenReader.IsNumberWithUnderlines(input, begin, end));
 }
Пример #4
0
        public void TryParseText_ShouldReturnFalse_WhenBeginLessThenZero()
        {
            Token token;

            TokenReader.TryParseText("some text", -1, 10, out token).Should().BeFalse();
        }