AjErl.Tests.Compiler.ParserTests.ThrowIfUnexpectedComma C# (CSharp) Method

ThrowIfUnexpectedComma() private method

private ThrowIfUnexpectedComma ( ) : void
return void
        public void ThrowIfUnexpectedComma()
        {
            Parser parser = new Parser(",");

            try
            {
                parser.ParseExpression();
                Assert.Fail();
            }
            catch (System.Exception ex)
            {
                Assert.IsInstanceOfType(ex, typeof(ParserException));
                Assert.AreEqual("Unexpected ','", ex.Message);
            }
        }