Browse Source

Now using IronPython 2.6 CTP for .NET 4.0 Beta 2

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5330 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Matt Ward 16 years ago
parent
commit
e751cc5b59
  1. 6
      src/AddIns/BackendBindings/Python/PyWalker/PyWalker.csproj
  2. 8
      src/AddIns/BackendBindings/Python/Python.Build.Tasks/Project/Python.Build.Tasks.csproj
  3. 1
      src/AddIns/BackendBindings/Python/Python.Build.Tasks/Project/Src/IPythonCompiler.cs
  4. 9
      src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj
  5. 92
      src/AddIns/BackendBindings/Python/PythonBinding.sln
  6. 9
      src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj
  7. 29
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/GenerateEventLogTestFixture.cs
  8. 5
      src/AddIns/BackendBindings/Python/PythonBinding/Test/ImportCompletionTestFixture.cs
  9. 46
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseClassWithCtorTestFixture.cs
  10. 68
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseClassWithMethodTestFixture.cs
  11. 67
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseMethodsWithNoClassTestFixture.cs
  12. 7
      src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj
  13. 34
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/DerivedPythonCodeCompletionBinding.cs
  14. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/IronPython.Modules.dll
  15. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/IronPython.dll
  16. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Dynamic.dll
  17. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.Core.dll
  18. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.Debugging.dll
  19. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.ExtensionAttribute.dll
  20. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.dll
  21. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/ipy.exe
  22. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/ipy64.exe
  23. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/ipyw.exe
  24. BIN
      src/AddIns/BackendBindings/Python/RequiredLibraries/ipyw64.exe

6
src/AddIns/BackendBindings/Python/PyWalker/PyWalker.csproj

@ -1,4 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{55329704-6046-48EC-8A20-5C80B3092A63}</ProjectGuid> <ProjectGuid>{55329704-6046-48EC-8A20-5C80B3092A63}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -49,9 +50,6 @@
<Reference Include="Microsoft.Scripting"> <Reference Include="Microsoft.Scripting">
<HintPath>..\RequiredLibraries\Microsoft.Scripting.dll</HintPath> <HintPath>..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\RequiredLibraries\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />

8
src/AddIns/BackendBindings/Python/Python.Build.Tasks/Project/Python.Build.Tasks.csproj

@ -1,4 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{D332F2D1-2CF1-43B7-903C-844BD5211A7E}</ProjectGuid> <ProjectGuid>{D332F2D1-2CF1-43B7-903C-844BD5211A7E}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -10,7 +11,7 @@
<NoStdLib>False</NoStdLib> <NoStdLib>False</NoStdLib>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
@ -55,9 +56,6 @@
<Reference Include="Microsoft.Scripting"> <Reference Include="Microsoft.Scripting">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath> <HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>

1
src/AddIns/BackendBindings/Python/Python.Build.Tasks/Project/Src/IPythonCompiler.cs

@ -9,7 +9,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using System.Reflection.Emit; using System.Reflection.Emit;
using IronPython.Hosting;
namespace ICSharpCode.Python.Build.Tasks namespace ICSharpCode.Python.Build.Tasks
{ {

9
src/AddIns/BackendBindings/Python/Python.Build.Tasks/Test/Python.Build.Tasks.Tests.csproj

@ -1,4 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{833904AB-3CD4-4071-9B48-5770E44685AA}</ProjectGuid> <ProjectGuid>{833904AB-3CD4-4071-9B48-5770E44685AA}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -10,7 +11,7 @@
<NoStdLib>False</NoStdLib> <NoStdLib>False</NoStdLib>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\..\..\..\bin\UnitTests\</OutputPath> <OutputPath>..\..\..\..\..\..\bin\UnitTests\</OutputPath>
@ -39,7 +40,6 @@
<ItemGroup> <ItemGroup>
<Reference Include="IronPython"> <Reference Include="IronPython">
<HintPath>..\..\RequiredLibraries\IronPython.dll</HintPath> <HintPath>..\..\RequiredLibraries\IronPython.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference> </Reference>
<Reference Include="Microsoft.Build.Engine" /> <Reference Include="Microsoft.Build.Engine" />
<Reference Include="Microsoft.Build.Framework" /> <Reference Include="Microsoft.Build.Framework" />
@ -53,9 +53,6 @@
<Reference Include="Microsoft.Scripting"> <Reference Include="Microsoft.Scripting">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath> <HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework"> <Reference Include="nunit.framework">
<HintPath>..\..\..\..\..\Tools\NUnit\nunit.framework.dll</HintPath> <HintPath>..\..\..\..\..\Tools\NUnit\nunit.framework.dll</HintPath>
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>

92
src/AddIns/BackendBindings/Python/PythonBinding.sln

@ -1,35 +1,41 @@
 
Microsoft Visual Studio Solution File, Format Version 11.00 Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 10 # Visual Studio 2010
# SharpDevelop 4.0.0.5076 # SharpDevelop 4.0.0.5293
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding", "PythonBinding\Project\PythonBinding.csproj", "{8D732610-8FC6-43BA-94C9-7126FD7FE361}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding", "PythonBinding\Project\PythonBinding.csproj", "{8D732610-8FC6-43BA-94C9-7126FD7FE361}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding.Tests", "PythonBinding\Test\PythonBinding.Tests.csproj", "{23B517C9-1ECC-4419-A13F-0B7136D085CB}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding.Tests", "PythonBinding\Test\PythonBinding.Tests.csproj", "{23B517C9-1ECC-4419-A13F-0B7136D085CB}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core", "..\..\..\Main\Core\Project\ICSharpCode.Core.csproj", "{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.Build.Tasks", "Python.Build.Tasks\Project\Python.Build.Tasks.csproj", "{D332F2D1-2CF1-43B7-903C-844BD5211A7E}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.Build.Tasks.Tests", "Python.Build.Tasks\Test\Python.Build.Tasks.Tests.csproj", "{833904AB-3CD4-4071-9B48-5770E44685AA}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.TextEditor", "..\..\..\Libraries\ICSharpCode.TextEditor\Project\ICSharpCode.TextEditor.csproj", "{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormsDesigner", "..\..\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj", "{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Dom", "..\..\..\Main\ICSharpCode.SharpDevelop.Dom\Project\ICSharpCode.SharpDevelop.Dom.csproj", "{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.AvalonEdit", "..\..\..\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\ICSharpCode.AvalonEdit.csproj", "{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactory", "..\..\..\Libraries\NRefactory\Project\NRefactory.csproj", "{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactory", "..\..\..\Libraries\NRefactory\Project\NRefactory.csproj", "{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.Build.Tasks", "Python.Build.Tasks\Project\Python.Build.Tasks.csproj", "{D332F2D1-2CF1-43B7-903C-844BD5211A7E}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.Build.Tasks.Tests", "Python.Build.Tasks\Test\Python.Build.Tasks.Tests.csproj", "{833904AB-3CD4-4071-9B48-5770E44685AA}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core", "..\..\..\Main\Core\Project\ICSharpCode.Core.csproj", "{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Widgets", "..\..\..\Main\ICSharpCode.SharpDevelop.Widgets\Project\ICSharpCode.SharpDevelop.Widgets.csproj", "{8035765F-D51F-4A0C-A746-2FD100E19419}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.Presentation", "..\..\..\Main\ICSharpCode.Core.Presentation\ICSharpCode.Core.Presentation.csproj", "{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PyWalker", "PyWalker\PyWalker.csproj", "{55329704-6046-48EC-8A20-5C80B3092A63}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.WinForms", "..\..\..\Main\ICSharpCode.Core.WinForms\ICSharpCode.Core.WinForms.csproj", "{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormsDesigner", "..\..\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj", "{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Dom", "..\..\..\Main\ICSharpCode.SharpDevelop.Dom\Project\ICSharpCode.SharpDevelop.Dom.csproj", "{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Widgets", "..\..\..\Main\ICSharpCode.SharpDevelop.Widgets\Project\ICSharpCode.SharpDevelop.Widgets.csproj", "{8035765F-D51F-4A0C-A746-2FD100E19419}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonEdit.AddIn", "..\..\DisplayBindings\AvalonEdit.AddIn\AvalonEdit.AddIn.csproj", "{0162E499-42D0-409B-AA25-EED21F75336B}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8D732610-8FC6-43BA-94C9-7126FD7FE361}.Debug|Any CPU.Build.0 = Debug|Any CPU {8D732610-8FC6-43BA-94C9-7126FD7FE361}.Debug|Any CPU.Build.0 = Debug|Any CPU
@ -40,26 +46,6 @@ Global
{23B517C9-1ECC-4419-A13F-0B7136D085CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {23B517C9-1ECC-4419-A13F-0B7136D085CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23B517C9-1ECC-4419-A13F-0B7136D085CB}.Release|Any CPU.Build.0 = Release|Any CPU {23B517C9-1ECC-4419-A13F-0B7136D085CB}.Release|Any CPU.Build.0 = Release|Any CPU
{23B517C9-1ECC-4419-A13F-0B7136D085CB}.Release|Any CPU.ActiveCfg = Release|Any CPU {23B517C9-1ECC-4419-A13F-0B7136D085CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.Build.0 = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|Any CPU.Build.0 = Release|Any CPU
{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.Build.0 = Release|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.Build.0 = Release|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU {D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Release|Any CPU.Build.0 = Release|Any CPU {D332F2D1-2CF1-43B7-903C-844BD5211A7E}.Release|Any CPU.Build.0 = Release|Any CPU
@ -68,17 +54,45 @@ Global
{833904AB-3CD4-4071-9B48-5770E44685AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {833904AB-3CD4-4071-9B48-5770E44685AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{833904AB-3CD4-4071-9B48-5770E44685AA}.Release|Any CPU.Build.0 = Release|Any CPU {833904AB-3CD4-4071-9B48-5770E44685AA}.Release|Any CPU.Build.0 = Release|Any CPU
{833904AB-3CD4-4071-9B48-5770E44685AA}.Release|Any CPU.ActiveCfg = Release|Any CPU {833904AB-3CD4-4071-9B48-5770E44685AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.Build.0 = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55329704-6046-48EC-8A20-5C80B3092A63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55329704-6046-48EC-8A20-5C80B3092A63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55329704-6046-48EC-8A20-5C80B3092A63}.Release|Any CPU.Build.0 = Release|Any CPU
{55329704-6046-48EC-8A20-5C80B3092A63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.Build.0 = Debug|Any CPU {7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Release|Any CPU.Build.0 = Release|Any CPU {7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Release|Any CPU.Build.0 = Release|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Release|Any CPU.ActiveCfg = Release|Any CPU {7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|Any CPU.Build.0 = Release|Any CPU
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.Build.0 = Release|Any CPU
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.Build.0 = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|Any CPU.Build.0 = Release|Any CPU
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.Build.0 = Release|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.Build.0 = Release|Any CPU
{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.Build.0 = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Release|Any CPU.Build.0 = Release|Any CPU
{0162E499-42D0-409B-AA25-EED21F75336B}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

9
src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj

@ -1,4 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{8D732610-8FC6-43BA-94C9-7126FD7FE361}</ProjectGuid> <ProjectGuid>{8D732610-8FC6-43BA-94C9-7126FD7FE361}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -43,18 +44,12 @@
<Reference Include="IronPython"> <Reference Include="IronPython">
<HintPath>..\..\RequiredLibraries\IronPython.dll</HintPath> <HintPath>..\..\RequiredLibraries\IronPython.dll</HintPath>
</Reference> </Reference>
<Reference Include="IronPython.Modules">
<HintPath>..\..\RequiredLibraries\IronPython.Modules.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Dynamic"> <Reference Include="Microsoft.Dynamic">
<HintPath>..\..\RequiredLibraries\Microsoft.Dynamic.dll</HintPath> <HintPath>..\..\RequiredLibraries\Microsoft.Dynamic.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting"> <Reference Include="Microsoft.Scripting">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath> <HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core"> <Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework> <RequiredTargetFramework>3.5</RequiredTargetFramework>

29
src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/GenerateEventLogTestFixture.cs

@ -38,30 +38,29 @@ namespace PythonBinding.Tests.Designer
EventLog eventLog = (EventLog)host.CreateComponent(typeof(EventLog), "eventLog1"); EventLog eventLog = (EventLog)host.CreateComponent(typeof(EventLog), "eventLog1");
DesignerSerializationManager serializationManager = new DesignerSerializationManager(host); DesignerSerializationManager serializationManager = new DesignerSerializationManager(host);
using (serializationManager.CreateSession()) { using (serializationManager.CreateSession()) {
PythonCodeDomSerializer serializer = new PythonCodeDomSerializer(" "); PythonCodeDomSerializer serializer = new PythonCodeDomSerializer(" ");
generatedPythonCode = serializer.GenerateInitializeComponentMethodBody(host, serializationManager, String.Empty, 1); generatedPythonCode = serializer.GenerateInitializeComponentMethodBody(host, serializationManager, String.Empty, 1);
} }
} }
} }
[Test] [Test]
[IgnoreAttribute("Ignore test to fix the build - this test breaks for some reason on .NET 4.0")]
public void GeneratedCode() public void GeneratedCode()
{ {
string expectedCode = " self._eventLog1 = System.Diagnostics.EventLog()\r\n" + string expectedCode =
" self.SuspendLayout()\r\n" + " self._eventLog1 = System.Diagnostics.EventLog()\r\n" +
" # \r\n" + " self.SuspendLayout()\r\n" +
" # eventLog1\r\n" + " # \r\n" +
" # \r\n" + " # eventLog1\r\n" +
" self._eventLog1.SynchronizingObject = self\r\n" + " # \r\n" +
" # \r\n" + " self._eventLog1.SynchronizingObject = self\r\n" +
" # MainForm\r\n" + " # \r\n" +
" # \r\n" + " # MainForm\r\n" +
" self.ClientSize = System.Drawing.Size(284, 264)\r\n" + " # \r\n" +
" self.Name = \"MainForm\"\r\n" + " self.ClientSize = System.Drawing.Size(284, 264)\r\n" +
" self.ResumeLayout(False)\r\n"; " self.Name = \"MainForm\"\r\n" +
" self.ResumeLayout(False)\r\n";
Assert.AreEqual(expectedCode, generatedPythonCode, generatedPythonCode); Assert.AreEqual(expectedCode, generatedPythonCode, generatedPythonCode);
} }

5
src/AddIns/BackendBindings/Python/PythonBinding/Test/ImportCompletionTestFixture.cs

@ -6,9 +6,11 @@
// </file> // </file>
using System; using System;
using ICSharpCode.AvalonEdit;
using ICSharpCode.Core; using ICSharpCode.Core;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.SharpDevelop; using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit; using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
@ -73,10 +75,9 @@ namespace PythonBinding.Tests
} }
[Test] [Test]
[Ignore("Broken since ITextEditor introduction")]
public void TextAreaControlUsedToDisplayCodeCompletionWindow() public void TextAreaControlUsedToDisplayCodeCompletionWindow()
{ {
Assert.AreSame(textEditor, codeCompletionBinding.TextAreaControlUsedToShowCompletionWindow); Assert.AreSame(textEditor, codeCompletionBinding.TextEditorUsedToShowCompletionWindow);
} }
[Test] [Test]

46
src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseClassWithCtorTestFixture.cs

@ -7,6 +7,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.AvalonEdit.AddIn;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
@ -22,14 +27,14 @@ namespace PythonBinding.Tests.Parsing
/// was folded. This test fixture tests for that bug. /// was folded. This test fixture tests for that bug.
/// </summary> /// </summary>
[TestFixture] [TestFixture]
[Ignore("Ignored because test depends on folding - reactivate when folding is reimplemented")]
public class ParseClassWithCtorTestFixture public class ParseClassWithCtorTestFixture
{ {
ICompilationUnit compilationUnit; ICompilationUnit compilationUnit;
IClass c; IClass c;
IMethod method; IMethod method;
// FoldMarker methodMarker; FoldingSection methodFold;
// FoldMarker classMarker; FoldingSection classFold;
TextDocument document;
[TestFixtureSetUp] [TestFixtureSetUp]
public void SetUpFixture() public void SetUpFixture()
@ -47,19 +52,22 @@ namespace PythonBinding.Tests.Parsing
method = c.Methods[0]; method = c.Methods[0];
} }
// // Get folds. // Get folds.
// ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(); TextArea textArea = new TextArea();
// ParseInformation parseInfo = new ParseInformation(compilationUnit); document = new TextDocument();
// textArea.Document = document;
// DocumentFactory docFactory = new DocumentFactory(); textArea.Document.Text = python;
// IDocument doc = docFactory.CreateDocument();
// doc.TextContent = python; ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(textArea);
// List<FoldMarker> markers = foldingStrategy.GenerateFoldMarkers(doc, @"C:\Temp\test.py", parseInfo);
// ParseInformation parseInfo = new ParseInformation(compilationUnit);
// if (markers.Count > 1) { foldingStrategy.UpdateFoldings(parseInfo);
// classMarker = markers[0]; List<FoldingSection> folds = new List<FoldingSection>(foldingStrategy.FoldingManager.AllFoldings);
// methodMarker = markers[1];
// } if (folds.Count > 1) {
classFold = folds[0];
methodFold = folds[1];
}
} }
} }
@ -75,10 +83,10 @@ namespace PythonBinding.Tests.Parsing
} }
[Test] [Test]
[IgnoreAttribute] public void MethodFoldTextInsideFoldIsMethodBody()
public void MethodFoldMarkerInnerText()
{ {
//Assert.AreEqual("\r\n\t\tpass", methodMarker.InnerText); string textInsideFold = document.GetText(methodFold.StartOffset, methodFold.Length);
Assert.AreEqual("\r\n\t\tpass", textInsideFold);
} }
[Test] [Test]

68
src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseClassWithMethodTestFixture.cs

@ -7,6 +7,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.AvalonEdit.AddIn;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
@ -17,14 +22,14 @@ using PythonBinding.Tests;
namespace PythonBinding.Tests.Parsing namespace PythonBinding.Tests.Parsing
{ {
[TestFixture] [TestFixture]
[Ignore("Ignored because test depends on folding - reactivate when folding is reimplemented")]
public class ParseClassWithMethodTestFixture public class ParseClassWithMethodTestFixture
{ {
ICompilationUnit compilationUnit; ICompilationUnit compilationUnit;
IClass c; IClass c;
IMethod method; IMethod method;
FoldMarker methodMarker = null; FoldingSection methodFold = null;
FoldMarker classMarker = null; FoldingSection classFold = null;
TextDocument document;
[TestFixtureSetUp] [TestFixtureSetUp]
public void SetUpFixture() public void SetUpFixture()
@ -42,21 +47,23 @@ namespace PythonBinding.Tests.Parsing
method = c.Methods[0]; method = c.Methods[0];
} }
// // Get folds. TextArea textArea = new TextArea();
// ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(); document = new TextDocument();
// ParseInformation parseInfo = new ParseInformation(compilationUnit); textArea.Document = document;
// textArea.Document.Text = python;
// DocumentFactory docFactory = new DocumentFactory();
// IDocument doc = docFactory.CreateDocument(); ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(textArea);
// doc.TextContent = python;
// List<FoldMarker> markers = foldingStrategy.GenerateFoldMarkers(doc, @"C:\Temp\test.py", parseInfo); ParseInformation parseInfo = new ParseInformation(compilationUnit);
// foldingStrategy.UpdateFoldings(parseInfo);
// if (markers.Count > 0) { List<FoldingSection> folds = new List<FoldingSection>(foldingStrategy.FoldingManager.AllFoldings);
// classMarker = markers[0];
// } if (folds.Count > 0) {
// if (markers.Count > 1) { classFold = folds[0];
// methodMarker = markers[1]; }
// } if (folds.Count > 1) {
methodFold = folds[1];
}
} }
} }
@ -130,17 +137,10 @@ namespace PythonBinding.Tests.Parsing
} }
[Test] [Test]
[Ignore] public void MethodFoldTextInsideFoldIsMethodBody()
public void MethodFoldMarkerStartColumn()
{
Assert.AreEqual(15, methodMarker.StartColumn);
}
[Test]
[Ignore]
public void MethodFoldMarkerInnerText()
{ {
Assert.AreEqual("\r\n\t\tpass", methodMarker.InnerText); string textInsideFold = document.GetText(methodFold.StartOffset, methodFold.Length);
Assert.AreEqual("\r\n\t\tpass", textInsideFold);
} }
[Test] [Test]
@ -157,16 +157,10 @@ namespace PythonBinding.Tests.Parsing
} }
[Test] [Test]
[Ignore] public void ClassFoldTextInsideFoldIsClassBody()
public void ClassFoldMarkerStartColumn()
{
Assert.AreEqual(11, classMarker.StartColumn);
}
[Test]
public void ClassFoldMarkerInnerText()
{ {
Assert.AreEqual("\r\n\tdef foo(self):\r\n\t\tpass", classMarker.InnerText); string textInsideFold = document.GetText(classFold.StartOffset, classFold.Length);
Assert.AreEqual("\r\n\tdef foo(self):\r\n\t\tpass", textInsideFold);
} }
} }
} }

67
src/AddIns/BackendBindings/Python/PythonBinding/Test/Parsing/ParseMethodsWithNoClassTestFixture.cs

@ -7,6 +7,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.AvalonEdit.AddIn;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
@ -14,19 +19,18 @@ using ICSharpCode.TextEditor.Document;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;
namespace PythonBinding.Tests.Parsing namespace PythonBinding.Tests.Parsing
{ {
/// <summary> /// <summary>
/// Support folding when no classes are defined. /// Support folding when no classes are defined.
/// </summary> /// </summary>
[TestFixture] [TestFixture]
[Ignore("Ignored because test depends on folding - reactivate when folding is reimplemented")]
public class ParseMethodsWithNoClassTestFixture public class ParseMethodsWithNoClassTestFixture
{ {
ICompilationUnit compilationUnit; ICompilationUnit compilationUnit;
FoldMarker fooMethodMarker = null; TextDocument document;
FoldMarker barMethodMarker = null; FoldingSection fooMethodFold = null;
FoldingSection barMethodFold = null;
IClass globalClass; IClass globalClass;
IMethod fooMethod; IMethod fooMethod;
IMethod barMethod; IMethod barMethod;
@ -52,19 +56,22 @@ namespace PythonBinding.Tests.Parsing
} }
} }
// // Get folds. // Get folds.
// ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(); TextArea textArea = new TextArea();
// ParseInformation parseInfo = new ParseInformation(compilationUnit); document = new TextDocument();
// textArea.Document = document;
// DocumentFactory docFactory = new DocumentFactory(); textArea.Document.Text = python;
// IDocument doc = docFactory.CreateDocument();
// doc.TextContent = python; ParserFoldingStrategy foldingStrategy = new ParserFoldingStrategy(textArea);
// List<FoldMarker> markers = foldingStrategy.GenerateFoldMarkers(doc, @"C:\Temp\test.py", parseInfo);
// ParseInformation parseInfo = new ParseInformation(compilationUnit);
// if (markers.Count > 1) { foldingStrategy.UpdateFoldings(parseInfo);
// fooMethodMarker = markers[0]; List<FoldingSection> folds = new List<FoldingSection>(foldingStrategy.FoldingManager.AllFoldings);
// barMethodMarker = markers[1];
// } if (folds.Count > 1) {
fooMethodFold = folds[0];
barMethodFold = folds[1];
}
} }
[Test] [Test]
@ -170,33 +177,31 @@ namespace PythonBinding.Tests.Parsing
{ {
Assert.AreEqual(1, barMethod.Parameters.Count); Assert.AreEqual(1, barMethod.Parameters.Count);
} }
[Test] [Test]
[Ignore] public void FooMethodTextInsideFoldIsFooMethodBody()
public void FooMethodFoldMarkerInnerText()
{ {
Assert.AreEqual("\r\n\tpass", fooMethodMarker.InnerText); string textInsideFold = document.GetText(fooMethodFold.StartOffset, fooMethodFold.Length);
Assert.AreEqual("\r\n\tpass", textInsideFold);
} }
[Test] [Test]
[Ignore] public void BarMethodTextInsideFoldIsBarMethodBody()
public void BarMethodFoldMarkerInnerText()
{ {
Assert.AreEqual("\r\n\tpass", barMethodMarker.InnerText); string textInsideFold = document.GetText(barMethodFold.StartOffset, barMethodFold.Length);
Assert.AreEqual("\r\n\tpass", textInsideFold);
} }
[Test] [Test]
[Ignore] public void FooMethodCollapsedFoldTitleIsNull()
public void FooMethodCollapsedFoldText()
{ {
Assert.AreEqual("...", fooMethodMarker.FoldText); Assert.IsNull(fooMethodFold.Title);
} }
[Test] [Test]
[Ignore] public void BarMethodCollapsedFoldTitleIsNull()
public void BarMethodCollapsedFoldText()
{ {
Assert.AreEqual("...", barMethodMarker.FoldText); Assert.IsNull(barMethodFold.Title);
} }
} }
} }

7
src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj

@ -52,9 +52,6 @@
<Reference Include="Microsoft.Scripting"> <Reference Include="Microsoft.Scripting">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath> <HintPath>..\..\RequiredLibraries\Microsoft.Scripting.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Scripting.Core">
<HintPath>..\..\RequiredLibraries\Microsoft.Scripting.Core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework"> <Reference Include="nunit.framework">
<HintPath>..\..\..\..\..\Tools\NUnit\nunit.framework.dll</HintPath> <HintPath>..\..\..\..\..\Tools\NUnit\nunit.framework.dll</HintPath>
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
@ -433,6 +430,10 @@
<Project>{8035765F-D51F-4A0C-A746-2FD100E19419}</Project> <Project>{8035765F-D51F-4A0C-A746-2FD100E19419}</Project>
<Name>ICSharpCode.SharpDevelop.Widgets</Name> <Name>ICSharpCode.SharpDevelop.Widgets</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\..\..\DisplayBindings\AvalonEdit.AddIn\AvalonEdit.AddIn.csproj">
<Project>{0162E499-42D0-409B-AA25-EED21F75336B}</Project>
<Name>AvalonEdit.AddIn</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj"> <ProjectReference Include="..\..\..\..\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj">
<Project>{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}</Project> <Project>{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}</Project>
<Name>FormsDesigner</Name> <Name>FormsDesigner</Name>

34
src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/DerivedPythonCodeCompletionBinding.cs

@ -23,7 +23,7 @@ namespace PythonBinding.Tests.Utils
{ {
bool ctrlSpaceCompletionDataProviderCreated; bool ctrlSpaceCompletionDataProviderCreated;
bool codeCompletionWindowDisplayed; bool codeCompletionWindowDisplayed;
ICSharpCode.SharpDevelop.Editor.ITextEditor textAreaControlUsedToShowCompletionWindow; ICSharpCode.SharpDevelop.Editor.ITextEditor textEditorUsedToShowCompletionWindow;
AbstractCompletionItemProvider completionProviderUsedWhenDisplayingCodeCompletionWindow; AbstractCompletionItemProvider completionProviderUsedWhenDisplayingCodeCompletionWindow;
CtrlSpaceCompletionItemProvider ctrlSpaceCompletionDataProvider; CtrlSpaceCompletionItemProvider ctrlSpaceCompletionDataProvider;
char completionCharacter = '\0'; char completionCharacter = '\0';
@ -38,9 +38,7 @@ namespace PythonBinding.Tests.Utils
/// base class PythonCodeCompletionBinding. /// base class PythonCodeCompletionBinding.
/// </summary> /// </summary>
public bool IsCtrlSpaceCompletionDataProviderCreated { public bool IsCtrlSpaceCompletionDataProviderCreated {
get { get { return ctrlSpaceCompletionDataProviderCreated; }
return ctrlSpaceCompletionDataProviderCreated;
}
} }
/// <summary> /// <summary>
@ -48,21 +46,15 @@ namespace PythonBinding.Tests.Utils
/// displayed the code completion window. /// displayed the code completion window.
/// </summary> /// </summary>
public bool IsCodeCompletionWindowDisplayed { public bool IsCodeCompletionWindowDisplayed {
get { get { return codeCompletionWindowDisplayed; }
return codeCompletionWindowDisplayed;
}
} }
public ICSharpCode.SharpDevelop.Editor.ITextEditor TextAreaControlUsedToShowCompletionWindow { public ICSharpCode.SharpDevelop.Editor.ITextEditor TextEditorUsedToShowCompletionWindow {
get { get { return textEditorUsedToShowCompletionWindow; }
return textAreaControlUsedToShowCompletionWindow;
}
} }
public AbstractCompletionItemProvider CompletionProviderUsedWhenDisplayingCodeCompletionWindow { public AbstractCompletionItemProvider CompletionProviderUsedWhenDisplayingCodeCompletionWindow {
get { get { return completionProviderUsedWhenDisplayingCodeCompletionWindow; }
return completionProviderUsedWhenDisplayingCodeCompletionWindow;
}
} }
/// <summary> /// <summary>
@ -70,9 +62,7 @@ namespace PythonBinding.Tests.Utils
/// CreateCtrlSpaceCompletionDataProvider method. /// CreateCtrlSpaceCompletionDataProvider method.
/// </summary> /// </summary>
public CtrlSpaceCompletionItemProvider CtrlSpaceCompletionDataProvider { public CtrlSpaceCompletionItemProvider CtrlSpaceCompletionDataProvider {
get { get { return ctrlSpaceCompletionDataProvider; }
return ctrlSpaceCompletionDataProvider;
}
} }
/// <summary> /// <summary>
@ -80,9 +70,7 @@ namespace PythonBinding.Tests.Utils
/// ShowCompletionWindow method. /// ShowCompletionWindow method.
/// </summary> /// </summary>
public char CompletionCharacter { public char CompletionCharacter {
get { get { return completionCharacter; }
return completionCharacter;
}
} }
/// <summary> /// <summary>
@ -90,9 +78,7 @@ namespace PythonBinding.Tests.Utils
/// CtrlSpaceCompletionDataProvider is created. /// CtrlSpaceCompletionDataProvider is created.
/// </summary> /// </summary>
public ExpressionContext ExpressionContext { public ExpressionContext ExpressionContext {
get { get { return expressionContext; }
return expressionContext;
}
} }
/// <summary> /// <summary>
@ -114,7 +100,7 @@ namespace PythonBinding.Tests.Utils
/// </summary> /// </summary>
protected override void ShowCodeCompletionWindow(ICSharpCode.SharpDevelop.Editor.ITextEditor textEditor, AbstractCompletionItemProvider completionDataProvider, char ch) protected override void ShowCodeCompletionWindow(ICSharpCode.SharpDevelop.Editor.ITextEditor textEditor, AbstractCompletionItemProvider completionDataProvider, char ch)
{ {
textAreaControlUsedToShowCompletionWindow = textEditor; textEditorUsedToShowCompletionWindow = textEditor;
codeCompletionWindowDisplayed = true; codeCompletionWindowDisplayed = true;
completionCharacter = ch; completionCharacter = ch;
completionProviderUsedWhenDisplayingCodeCompletionWindow = completionDataProvider; completionProviderUsedWhenDisplayingCodeCompletionWindow = completionDataProvider;

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/IronPython.Modules.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/IronPython.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Dynamic.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.Core.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.Debugging.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.ExtensionAttribute.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/Microsoft.Scripting.dll

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/ipy.exe

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/ipy64.exe

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/ipyw.exe

Binary file not shown.

BIN
src/AddIns/BackendBindings/Python/RequiredLibraries/ipyw64.exe

Binary file not shown.
Loading…
Cancel
Save