public WhenAttemptingToGetATokenFromThePegLexer()
     : base()
 {
     lexer = Mocks.PartialMock<PegLexer>();
     token = new TokenInfo();
     pegToken = new PegToken();
 }
        public WhenProcessingALineWithBooScanner()
            : base()
        {
            lexer = new PegLexer();
            scanner = new BooScanner(lexer);

            scanner.SetSource(line,offset);
        }
예제 #3
0
        public ManualTokenTestFixture()
            : base()
        {
            //             0         1         2         3
              //             012345678901234567890123456789012345678
              line = string.Empty;
              offset = 0;

              expectedTokenType = TokenType.Unknown;
              expectedTokenColor = TokenColor.Text;
              expectedStartIndex = 0;
              expectedEndIndex = 0;
              state = 0;

              lexer = new PegLexer();
              scanner = new BooScanner(lexer);
              token = new TokenInfo();
        }