public void CSharpCodeGenerator_CodeExitLoop()
        {
            var statement = new ExitLoopStatement();
            var generator = new CSharpCodeGenerator();
            var result    = generator.Write(statement);

            Assert.That.StringEquals(@"break;
", result);
        }
Exemplo n.º 2
0
 public virtual void VisitExitLoopStatement(ExitLoopStatement exitLoopStatement)
 {
     VisitStatement(exitLoopStatement);
 }
Exemplo n.º 3
0
 protected virtual void Write(IndentedTextWriter writer, ExitLoopStatement statement, WriteStatementOptions options)
 {
     writer.WriteLine("break;");
 }