Exemplo n.º 1
0
        public void RunawayExpression()
        {
            Assertion ass = new Assertion(_mock, 0, 0);

            ass.Add(new Token(TokenType.Control, 0, 0, "("));
            ass.Add(new Token(TokenType.Number, 0, 0, "4"));
            ass.Add(new Token(TokenType.Control, 0, 0, ")"));
            ass.Add(new Token(TokenType.Name, 0, 0, "bla"));
        }
Exemplo n.º 2
0
        public void BadlyTimedParen()
        {
            Assertion ass = new Assertion(_mock, 0, 0);

            ass.Add(new Token(TokenType.Control, 0, 0, "("));
            ass.Add(new Token(TokenType.Number, 0, 0, "4"));
            ass.Add(new Token(TokenType.Control, 0, 0, "+"));
            ass.Add(new Token(TokenType.Control, 0, 0, ")"));
        }
Exemplo n.º 3
0
        public void RunTest()
        {
            Assertion ass = new Assertion(_mock, 0, 0);

            ass.Add(new Token(TokenType.Control, 0, 0, "("));
            ass.Add(new Token(TokenType.Name, 0, 0, "fuu"));
            ass.Add(new Token(TokenType.Control, 0, 0, ")"));
            ass.Exit();
            ass.Run();
        }
Exemplo n.º 4
0
        public void ParenCountingTest()
        {
            Assertion ass = new Assertion(_mock, 0, 0);

            ass.Add(new Token(TokenType.Control, 0, 0, "("));
            ass.Add(new Token(TokenType.Control, 0, 0, "("));
            ass.Add(new Token(TokenType.Number, 0, 0, "4"));
            ass.Add(new Token(TokenType.Control, 0, 0, "+"));
            ass.Add(new Token(TokenType.Number, 0, 0, "1"));
            ass.Add(new Token(TokenType.Control, 0, 0, ")"));
            ass.Add(new Token(TokenType.Control, 0, 0, "="));
            ass.Add(new Token(TokenType.Number, 0, 0, "4"));
            ass.Add(new Token(TokenType.Control, 0, 0, ")"));
            ass.Exit();
            ass.Run();
        }
Exemplo n.º 5
0
        public void InvalidStartTest()
        {
            Assertion ass = new Assertion(_mock, 0, 0);

            ass.Add(new Token(TokenType.Name, 0, 0, "bla"));
        }