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
public class BitShiftConversionTestFixture
17
" public int Convert()\r\n" +
19
" int a = (b >> 16) & 0xffff;\r\n" +
25
public void ConvertedRubyCode()
27
NRefactoryToRubyConverter converter = new NRefactoryToRubyConverter(SupportedLanguage.CSharp);
28
converter.IndentString = " ";
29
string Ruby = converter.Convert(csharp);
32
" def Convert()\r\n" +
33
" a = (b >> 16) & 0xffff\r\n" +
38
Assert.AreEqual(expectedRuby, Ruby);