public void TestStmtModifiers1()
{
Boo.Lang.Compiler.Ast.Module module = ParseTestCase("stmt_modifiers_1.boo");
Method m = (Method)module.Members[0];
ReturnStatement rs = (ReturnStatement)m.Body.Statements[0];
Assert.IsNotNull(rs.Modifier, "Modifier");
Assert.AreEqual(StatementModifierType.If, rs.Modifier.Type);
BinaryExpression be = (BinaryExpression)rs.Modifier.Condition;
Assert.AreEqual(BinaryOperatorType.LessThan, be.Operator);
Assert.AreEqual("n", ((ReferenceExpression)be.Left).Name);
Assert.AreEqual(2, ((IntegerLiteralExpression)be.Right).Value);
}