示例#1
0
    public void TestSimpleInteger()
    {
        InitCompiler("123", 0);

        Assert.IsTrue(parser.Parse(compiler));

        Assert.AreSame(root, compiler.Parent);
        Assert.AreEqual(1, root.Children.Count);
        Assert.AreEqual(new IntegerToken(123, 0), root.Children[0]);
        Assert.AreEqual(3, compiler.Pos);
    }
示例#2
0
 public void Parse_ArgumentNull()
 {
     ItemUnderTest.Parse(null);
 }