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)
5
using ICSharpCode.NRefactory;
6
using ICSharpCode.RubyBinding;
9
namespace RubyBinding.Tests.Converter
12
/// Tests that a break statement is converted correctly.
15
public class BreakAndContinueConversionTestFixture
20
" public void Run()\r\n" +
23
" while (i < 10) {\r\n" +
24
" if (i == 5) {\r\n" +
35
public void ConvertedRubyCode()
37
NRefactoryToRubyConverter converter = new NRefactoryToRubyConverter(SupportedLanguage.CSharp);
38
converter.IndentString = " ";
39
string Ruby = converter.Convert(csharp);
45
" if i == 5 then\r\n" +
55
Assert.AreEqual(expectedRuby, Ruby, Ruby);