Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4883 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
4 changed files with 34 additions and 8 deletions
@ -0,0 +1,26 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Daniel Grunwald"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using ICSharpCode.NRefactory.Ast; |
||||||
|
using System; |
||||||
|
using NUnit.Framework; |
||||||
|
|
||||||
|
namespace ICSharpCode.NRefactory.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(SupportedLanguage.VBNet); |
||||||
|
INode node = parser.Parse("i == 5"); |
||||||
|
Assert.IsTrue(parser.Errors.Count > 0); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue