// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using ICSharpCode.NRefactory.VB.Dom; using System; using NUnit.Framework; namespace ICSharpCode.NRefactory.VB.Tests { [TestFixture] public class SnippetParserTests { [Test] public void InvalidExpressionSyntax() { // SD2-1584: ensure we don't crash on this invalid VB code SnippetParser parser = new SnippetParser(); INode node = parser.Parse("i == 5"); Assert.IsTrue(parser.Errors.Count > 0); } } }