|
|
@ -100,8 +100,8 @@ namespace RubyBinding.Tests.Converter |
|
|
|
{ |
|
|
|
{ |
|
|
|
NRefactoryToRubyConverter converter = new NRefactoryToRubyConverter(SupportedLanguage.VBNet); |
|
|
|
NRefactoryToRubyConverter converter = new NRefactoryToRubyConverter(SupportedLanguage.VBNet); |
|
|
|
converter.IndentString = " "; |
|
|
|
converter.IndentString = " "; |
|
|
|
string python = converter.Convert(vnetClassWithTwoArrayFieldsOnSameLine); |
|
|
|
string ruby = converter.Convert(vnetClassWithTwoArrayFieldsOnSameLine); |
|
|
|
string expectedPython = |
|
|
|
string expectedRuby = |
|
|
|
"class Foo\r\n" + |
|
|
|
"class Foo\r\n" + |
|
|
|
" def initialize()\r\n" + |
|
|
|
" def initialize()\r\n" + |
|
|
|
" @i = Array.CreateInstance(System::Int32, 10)\r\n" + |
|
|
|
" @i = Array.CreateInstance(System::Int32, 10)\r\n" + |
|
|
@ -109,7 +109,7 @@ namespace RubyBinding.Tests.Converter |
|
|
|
" end\r\n" + |
|
|
|
" end\r\n" + |
|
|
|
"end"; |
|
|
|
"end"; |
|
|
|
|
|
|
|
|
|
|
|
Assert.AreEqual(expectedPython, python); |
|
|
|
Assert.AreEqual(expectedRuby, ruby); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|