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); }
public void Parse_ArgumentNull() { ItemUnderTest.Parse(null); }