public void ThrowIfTupleHasUnexpectedPoint()
{
Parser parser = new Parser("{1,2,.");
try
{
parser.ParseExpression();
Assert.Fail();
}
catch (System.Exception ex)
{
Assert.IsInstanceOfType(ex, typeof(ParserException));
Assert.AreEqual("Unexpected '.'", ex.Message);
}
}