3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs
/// <summary>
/// Bug 3952 - Syntax errors that causes AST not inserted 
/// </summary>
Bug 3952 - Syntax errors that causes AST not inserted
Bug 3952 - Syntax errors that causes AST not inserted
[Ignore("Still open 03/2013")]
		[Test]
		public void TestBug3952()
		{
			string code = @"
class Foo
{
	void Bar()
	{
		Test(new Foo (
	}
}";
			var unit = SyntaxTree.Parse(code);
			var type = unit.Members.First() as TypeDeclaration;
			var method = type.Members.First() as MethodDeclaration;
			bool passed = !method.Body.IsNull;
			if (!passed) {
				Console.WriteLine("Expected:" + code);
				Console.WriteLine("Was:" + unit);
			}
			Assert.IsTrue(passed);
		}
[ Ignore ( " " ) ] [ Test ] public void TestBug3952 ( ) { string code = @"
class Foo
{
	void Bar()
	{
		Test(new Foo (
	}
}" ; var unit = SyntaxTree . Parse ( code ) ; var type = unit . Members . First ( ) as TypeDeclaration ; var method = type . Members . First ( ) as MethodDeclaration ; bool passed = ! method . Body . IsNull ; if ( ! passed ) { Console . WriteLine ( " " + code ) ; Console . WriteLine ( " " + unit ) ; } Assert . IsTrue ( passed ) ; }
Bug 3952 - Syntax errors that causes AST not inserted
Bug 3952 - Syntax errors that causes AST not inserted