3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs
/// <summary>
/// Bug 3578 - For condition not in the AST.
/// </summary>
Bug 3578 - For condition not in the AST.
Bug 3578 - For condition not in the AST .
[Test]
		public void TestBug3578()
		{
			string code = 
@"class Foo
{
	void Bar ()
	{
		for (int i = 0; i < foo.bar)
	}
}";
			var unit = SyntaxTree.Parse(code);
			bool passed = @"class Foo
{
	void Bar ()
	{
		for (int i = 0; i < foo.bar;)
	}
}" == unit.ToString().Trim ();
			if (!passed) {
				Console.WriteLine("Expected:" + code);
				Console.WriteLine("Was:" + unit);
			}
			Assert.IsTrue(passed);
		}
[ Test ] public void TestBug3578 ( ) { string code = @"class Foo
{
	void Bar ()
	{
		for (int i = 0; i < foo.bar)
	}
}" ; var unit = SyntaxTree . Parse ( code ) ; bool passed = @"class Foo
{
	void Bar ()
	{
		for (int i = 0; i < foo.bar;)
	}
}" == unit . ToString ( ) . Trim ( ) ; if ( ! passed ) { Console . WriteLine ( " " + code ) ; Console . WriteLine ( " " + unit ) ; } Assert . IsTrue ( passed ) ; }
Bug 3578 - For condition not in the AST.
Bug 3578 - For condition not in the AST .