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.PythonBinding;
9
namespace PythonBinding.Tests.Converter
12
/// Tests that method parameters are converted into Python
16
public class MethodParameterConversionTestFixture
18
string csharp = "class Foo\r\n" +
20
"\tpublic int Run(int i)\r\n" +
27
public void ConvertedPythonCode()
29
NRefactoryToPythonConverter converter = new NRefactoryToPythonConverter(SupportedLanguage.CSharp);
30
string code = converter.Convert(csharp);
31
string expectedCode = "class Foo(object):\r\n" +
32
"\tdef Run(self, i):\r\n" +
35
Assert.AreEqual(expectedCode, code);