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
public class ModulusOperatorConversionTestFixture
14
string csharp = "class Foo\r\n" +
16
"\tpublic void Convert(int a)\r\n" +
23
public void ConvertedPythonCode()
25
NRefactoryToPythonConverter converter = new NRefactoryToPythonConverter(SupportedLanguage.CSharp);
26
string python = converter.Convert(csharp);
27
string expectedPython = "class Foo(object):\r\n" +
28
"\tdef Convert(self, a):\r\n" +
31
Assert.AreEqual(expectedPython, python);