1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
using ICSharpCode.NRefactory.Parser;
8
using ICSharpCode.NRefactory.Ast;
10
namespace ICSharpCode.NRefactory.Tests.Ast
13
public class ForStatementTests
17
public void CSharpEmptyForStatementTest()
19
ForStatement forStmt = ParseUtilCSharp.ParseStatement<ForStatement>("for (;;) ;");
20
Assert.AreEqual(0, forStmt.Initializers.Count);
21
Assert.AreEqual(0, forStmt.Iterator.Count);
22
Assert.IsTrue(forStmt.Condition.IsNull);
23
Assert.IsTrue(forStmt.EmbeddedStatement is EmptyStatement);
27
public void CSharpForStatementTest()
29
ForStatement forStmt = ParseUtilCSharp.ParseStatement<ForStatement>("for (int i = 5; i < 6; ++i) {} ");
30
// TODO : Extend test.
35
// No VB.NET representation (for ... next is different)