diff --git a/src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj b/src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj index 870a9db591..bfb1e69fe9 100644 --- a/src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj +++ b/src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj @@ -37,10 +37,6 @@ - - ..\..\RequiredLibraries\IronMath.dll - False - ..\..\RequiredLibraries\IronPython.dll False diff --git a/src/Main/Base/Test/CodeConverterTests.cs b/src/Main/Base/Test/CodeConverterTests.cs index 1e42ead7c3..9e6499dcaf 100644 --- a/src/Main/Base/Test/CodeConverterTests.cs +++ b/src/Main/Base/Test/CodeConverterTests.cs @@ -489,6 +489,36 @@ namespace ICSharpCode.SharpDevelop.Tests DefaultUsingsCSharp + "class Test\n{\n}"); } + [Test] + public void CallMethodOnModule() + { + TestProgramVB2CS("Class Test\n" + + " Sub A\n" + + " Method(Field)\n" + + " End Sub\n" + + "End Class\n" + + "Module TheModule\n" + + " Sub Method(a As Integer)\n" + + " End Sub\n" + + " Public Field As Integer\n" + + "End Module", + DefaultUsingsCSharp + + "class Test\n" + + "{\n" + + " public void A()\n" + + " {\n" + + " TheModule.Method(TheModule.Field);\n" + + " }\n" + + "}\n" + + "static class TheModule\n" + + "{\n" + + " public static void Method(int a)\n" + + " {\n" + + " }\n" + + " public static int Field;\n" + + "}"); + } + #region Casting [Test] public void CastToEnum()