From ec073af6f8f93d7021871e10de39fbec8a4930e7 Mon Sep 17 00:00:00 2001 From: mrward Date: Fri, 3 Sep 2010 11:22:41 +0100 Subject: [PATCH] Move common MockProjectContent to ICSharpCode.Scripting.Tests project. --- ...FromDateTimeImportCompletionTestFixture.cs | 1 + ...ortDotNetNamespaceCompletionTestFixture.cs | 3 +- ...ImportPythonModuleCompletionTestFixture.cs | 3 +- ...mMathLibraryImportCompletionTestFixture.cs | 1 + ...aryImportCosMethodCompletionTestFixture.cs | 1 + ...LibraryImportCompletionItemsTestFixture.cs | 3 +- .../Completion/ImportCompletionTestFixture.cs | 3 +- ...portEmptyNamespaceCompletionTestFixture.cs | 3 +- ...emsIfExpressionHasIdentifierTestFixture.cs | 1 + ...ImportSubNamespaceCompletionTestFixture.cs | 3 +- ...paceContentsAddedToCtrlSpaceTestFixture.cs | 4 +- ...ythonImportExpressionContextTestFixture.cs | 1 + .../ProjectHasStartupObjectTestFixture.cs | 4 +- ...indInitializeComponentMethodTestFixture.cs | 1 + .../Designer/IsFormDesignableTestFixture.cs | 1 + .../Test/PythonBinding.Tests.csproj | 2 - .../ImportModuleResolveResultTests.cs | 1 + ...WindowsWithImportSystemAsFooTestFixture.cs | 1 + .../Resolver/ResolveFromImportTestFixture.cs | 1 + ...tedMathModuleCompletionItemsTestFixture.cs | 2 + .../Resolver/ResolveImportsTestFixture.cs | 1 + .../ResolveLocalClassInstanceTestFixture.cs | 4 +- .../ResolveSystemConsoleTestFixture.cs | 4 +- .../ResolveSystemNamespaceTestFixture.cs | 1 + ...WindowsFormsWithImportSystemTestFixture.cs | 1 + ...ystemWindowsWithImportSystemTestFixture.cs | 1 + .../Test/Resolver/ResolveTestFixtureBase.cs | 1 + ...olverContextPartialNamespaceExistsTests.cs | 1 + ...indInitializeComponentMethodTestFixture.cs | 1 + .../Designer/IsFormDesignableTestFixture.cs | 3 +- .../RubyBinding/Test/RubyBinding.Tests.csproj | 1 - .../Test/Utils/MockProjectContent.cs | 374 ------------------ .../Scripting/ICSharpCode.Scripting.sln | 22 ++ .../Test/ICSharpCode.Scripting.Tests.csproj | 6 + .../Test/Utils/MockProjectContent.cs | 5 +- .../Utils/Tests/MockProjectContentTests.cs | 13 +- 36 files changed, 76 insertions(+), 403 deletions(-) delete mode 100644 src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs rename src/AddIns/BackendBindings/{Python/PythonBinding => Scripting}/Test/Utils/MockProjectContent.cs (98%) rename src/AddIns/BackendBindings/{Python/PythonBinding => Scripting}/Test/Utils/Tests/MockProjectContentTests.cs (93%) diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs index 0027bfe74d..e333e0b974 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs index 5cbe4003ac..857e8c290d 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs index 07d5b4228c..26ff4ec140 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs index 94f79a2a5d..a9d12aef00 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs index 2f8e92fb6b..90479675e4 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs index c0da1dd851..7e6b47f7d0 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs index b6196f978b..d5c8cc8d93 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs index 69afc183c2..cb87105ab1 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs index 228fb6f694..6961487f34 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs index 3e77ec497f..ae5d714ccd 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs @@ -7,8 +7,9 @@ using System; using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; +using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs index fb803ad45f..8141edc40d 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs @@ -26,14 +26,14 @@ namespace PythonBinding.Tests.Resolver { List results; PythonResolver resolver; - PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; + ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent; MockClass myTestClass; [TestFixtureSetUp] public void SetUpFixture() { resolver = new PythonResolver(); - mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); + mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent(); mockProjectContent.NamespacesToAdd.Add("Test"); myTestClass = new MockClass(mockProjectContent, "MyTestClass"); List namespaceItems = new List(); diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs index a3ef492d4e..d712c5ae1e 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs @@ -7,6 +7,7 @@ using System; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs index 3e56b441f9..f94b1eb298 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs @@ -33,7 +33,7 @@ namespace PythonBinding.Tests.Converter FileProjectItem targetMain2File; MSBuildBasedProject sourceProject; PythonProject targetProject; - PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; + ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent; string startupObject = "RootNamespace.Main"; @@ -66,7 +66,7 @@ namespace PythonBinding.Tests.Converter // Set up IProjectContent so the ConvertProjectToPythonProjectCommand can // locate the startup object and determine it's filename. - mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); + mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent(); MockClass mainClass = new MockClass(mockProjectContent, startupObject); mainClass.CompilationUnit.FileName = @"d:\projects\test\src\Main2.cs"; mockProjectContent.ClassToReturnFromGetClass = mainClass; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs index 49c7fe72a3..6f692c39bb 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs @@ -7,6 +7,7 @@ using System; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs index 73678126a9..d2783a20fb 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs @@ -8,6 +8,7 @@ using System; using ICSharpCode.FormsDesigner; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj b/src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj index a705dd0469..1c500c2d14 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj @@ -442,7 +442,6 @@ - @@ -459,7 +458,6 @@ - diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs index 3b824860a1..ec60184da6 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs @@ -7,6 +7,7 @@ using System; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs index d6d6bffc47..507b40fcdb 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs index 9de2796c7f..e79a82ab9b 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs index 7acb1de669..687a6fc7cc 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs @@ -8,7 +8,9 @@ using System; using System.Collections; using System.Collections.Generic; + using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs index 4be282d745..99060406e0 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs index 9f5c872712..21db674363 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs @@ -28,7 +28,7 @@ namespace PythonBinding.Tests.Resolver public class ResolveLocalClassInstanceTestFixture { PythonResolver resolver; - PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; + ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent; LocalResolveResult resolveResult; MockClass testClass; ICompilationUnit compilationUnit; @@ -38,7 +38,7 @@ namespace PythonBinding.Tests.Resolver { resolver = new PythonResolver(); - mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); + mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent(); testClass = new MockClass(mockProjectContent, "Test.Test1"); mockProjectContent.ClassesInProjectContent.Add(testClass); mockProjectContent.ClassToReturnFromGetClass = testClass; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs index 0e014b791c..b3e78008a5 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs @@ -24,7 +24,7 @@ namespace PythonBinding.Tests.Resolver public class ResolveSystemConsoleTestFixture { PythonResolver resolver; - PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; + ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent; ResolveResult resolveResult; MockClass testClass; ICompilationUnit compilationUnit; @@ -35,7 +35,7 @@ namespace PythonBinding.Tests.Resolver public void SetUpFixture() { resolver = new PythonResolver(); - mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); + mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent(); systemConsoleClass = new MockClass(mockProjectContent, "System.Console"); mockProjectContent.ClassToReturnFromGetClass = systemConsoleClass; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs index a9df2bf9ef..fac12daafe 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs index f01d0adf07..9de68db638 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs index c786494f52..913f5eab47 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs index 605a65e055..ab964cd789 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs @@ -7,6 +7,7 @@ using System; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs index 7e0c80e355..7cd162eecb 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using PythonBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs index 9c4e969935..ab8b10edb7 100644 --- a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs +++ b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs @@ -7,6 +7,7 @@ using System; using ICSharpCode.RubyBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using RubyBinding.Tests.Utils; diff --git a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs index d072693447..cab3f11470 100644 --- a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs +++ b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs @@ -8,6 +8,7 @@ using System; using ICSharpCode.FormsDesigner; using ICSharpCode.RubyBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using RubyBinding.Tests.Utils; @@ -33,7 +34,7 @@ namespace RubyBinding.Tests.Designer { RubyParser parser = new RubyParser(); MockProjectContent mockProjectContent = new MockProjectContent(); - ICompilationUnit compilationUnit = parser.Parse(mockProjectContent, @"C:\Projects est\MainForm.py", GetRubyCode()); + ICompilationUnit compilationUnit = parser.Parse(mockProjectContent, @"C:\Projects\test\MainForm.py", GetRubyCode()); parseInfo = new ParseInformation(compilationUnit); diff --git a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj index fe4a0eeb85..503d8e33b3 100644 --- a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj +++ b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj @@ -335,7 +335,6 @@ - diff --git a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs deleted file mode 100644 index c9ea88c30c..0000000000 --- a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs +++ /dev/null @@ -1,374 +0,0 @@ -// -// -// -// -// $Revision$ -// - -using System; -using System.Collections; -using System.Collections.Generic; -using ICSharpCode.SharpDevelop.Dom; - -namespace RubyBinding.Tests.Utils -{ - /// - /// Mock IProjectContent implementation. - /// - public class MockProjectContent : IProjectContent - { - bool addNamespaceContentsCalled; - string namespaceAddedName; - string namespaceSearchedFor; - bool lookInReferences; - LanguageProperties languagePassedToAddNamespaceContents; - LanguageProperties language = new LanguageProperties(StringComparer.InvariantCulture); - List namespacesToAdd = new List(); - SearchTypeResult searchTypeResult; - bool searchTypeCalled; - SearchTypeRequest searchTypeRequest; - IClass classToReturnFromGetClass; - bool getClassCalled; - string getClassName; - List classesInProjectContent = new List(); - List namespaceContents = new List(); - string namespaceContentsSearched = String.Empty; - string classNameForGetClass; - bool namespaceExistsReturnValue; - bool namespaceExistsCalled; - object project; - - public MockProjectContent() - { - } - - /// - /// Gets whether the AddNamespaceContents method was called. - /// - public bool AddNamespaceContentsCalled { - get { return addNamespaceContentsCalled; } - } - - /// - /// Gets the namespace passed to the AddNamespaceContents method. - /// - public string NamespaceAddedName { - get { return namespaceAddedName; } - } - - /// - /// Gets the LookInReferences flag that was passed to the - /// AddNamespaceContents method. - /// - public bool LookInReferences { - get { return lookInReferences; } - } - - public LanguageProperties LanguagePassedToAddNamespaceContents { - get { return languagePassedToAddNamespaceContents; } - } - - /// - /// Gets the namespaces that will be added when the - /// AddNamespaceContents method is called. - /// - public List NamespacesToAdd { - get { return namespacesToAdd; } - } - - /// - /// Gets whether the NamespaceExists method was called. - /// - public bool NamespaceExistsCalled { - get { return namespaceExistsCalled; } - } - - /// - /// Gets the namespace passed to the SearchNamespace method and - /// searched for. - /// - public string NamespaceSearchedFor { - get { return namespaceSearchedFor; } - set { namespaceSearchedFor = value; } - } - - /// - /// Gets or sets the SearchTypeResult to return from the - /// SearchType method. - /// - public SearchTypeResult SearchTypeResultToReturn { - get { return searchTypeResult; } - set { searchTypeResult = value; } - } - - /// - /// Gets whether the SearchType method was called. - /// - public bool SearchTypeCalled { - get { return searchTypeCalled; } - } - - /// - /// Gets the search type request passed to the SearchType method. - /// - public SearchTypeRequest SearchTypeRequest { - get { return searchTypeRequest; } - } - - /// - /// Gets or sets the class to return from the GetClass Method. - /// - public IClass ClassToReturnFromGetClass - { - get { return classToReturnFromGetClass; } - set { classToReturnFromGetClass = value; } - } - - /// - /// Gets or sets the class name that needs to match in order - /// for the GetClass call to return a class. If nothing is - /// specified then every class name matches. - /// - public string ClassNameForGetClass { - get { return classNameForGetClass; } - set { classNameForGetClass = value; } - } - - /// - /// Gets whether the GetClass method was called. - /// - public bool GetClassCalled { - get { return getClassCalled; } - } - - /// - /// Gets the name passed to the GetClass method. - /// - public string GetClassName { - get { return getClassName; } - } - - /// - /// Gets the namespace contents to return from the - /// GetNamespaceContents method. - /// - public List NamespaceContentsToReturn { - get { return namespaceContents; } - } - - /// - /// Returns the namespace that was passed to the - /// GetNamespaceContents method. - /// - public string NamespaceContentsSearched { - get { return namespaceContentsSearched; } - } - - #region IProjectContent - public event EventHandler ReferencedContentsChanged; - - public XmlDoc XmlDoc { - get { - return null; - } - } - - public bool IsUpToDate { - get { - return true; - } - } - - public ICollection Classes { - get { - throw new NotImplementedException(); - } - } - - public ICollection NamespaceNames { - get { - throw new NotImplementedException(); - } - } - - public ICollection ReferencedContents { - get { - throw new NotImplementedException(); - } - } - - public LanguageProperties Language { - get { return language; } - } - - public IUsing DefaultImports { - get { return null; } - } - - public object Project { - get { return project; } - set { project = value; } - } - - public SystemTypes SystemTypes { - get { - return new SystemTypes(this); - } - } - - public string GetXmlDocumentation(string memberTag) - { - return null; - } - - public void AddClassToNamespaceList(IClass addClass) - { - throw new NotImplementedException(); - } - - public void RemoveCompilationUnit(ICompilationUnit oldUnit) - { - throw new NotImplementedException(); - } - - public void UpdateCompilationUnit(ICompilationUnit oldUnit, ICompilationUnit parserOutput, string fileName) - { - throw new NotImplementedException(); - } - - public IClass GetClass(string typeName, int typeParameterCount) - { - getClassName = typeName; - getClassCalled = true; - - // If a class name is specified then only return a class - // if we have a match. - if (classNameForGetClass != null) { - if (typeName == classNameForGetClass) { - return classToReturnFromGetClass; - } else { - return null; - } - } - return classToReturnFromGetClass; - } - - public void SetNamespaceExistsReturnValue(bool returnValue) - { - namespaceExistsReturnValue = returnValue; - } - - public bool NamespaceExists(string name) - { - namespaceExistsCalled = true; - namespaceSearchedFor = name; - return namespaceExistsReturnValue; - } - - public List GetNamespaceContents(string nameSpace) - { - namespaceContentsSearched = nameSpace; - return namespaceContents; - } - - public IClass GetClass(string typeName, int typeParameterCount, LanguageProperties language, GetClassOptions options) - { - return GetClass(typeName, typeParameterCount); - } - - public bool NamespaceExists(string name, LanguageProperties language, bool lookInReferences) - { - throw new NotImplementedException(); - } - - public void AddNamespaceContents(List list, string subNameSpace, LanguageProperties language, bool lookInReferences) - { - addNamespaceContentsCalled = true; - namespaceAddedName = subNameSpace; - this.lookInReferences = lookInReferences; - languagePassedToAddNamespaceContents = language; - - // Add the namespaces to the list. - foreach (string ns in namespacesToAdd) { - list.Add(new NamespaceEntry(ns)); - } - - // Add the classes in this project content. - foreach (IClass c in classesInProjectContent) { - list.Add(c); - } - } - - /// - /// Gets the list of classes that will be added to the list - /// when the AddNamespaceContents is called. - /// - public List ClassesInProjectContent { - get { return classesInProjectContent; } - } - - public string SearchNamespace(string name, IClass curType, ICompilationUnit unit, int caretLine, int caretColumn) - { -// searchNamespaceCalled = true; -// namespaceSearchedFor = name; -// return searchNamespace; - throw new NotImplementedException(); - } - - public SearchTypeResult SearchType(SearchTypeRequest request) - { - searchTypeCalled = true; - searchTypeRequest = request; - return searchTypeResult; - } - - public IClass GetClassByReflectionName(string fullMemberName, bool lookInReferences) - { - throw new NotImplementedException(); - } - - public FilePosition GetPosition(IEntity entity) - { - throw new NotImplementedException(); - } - - public void Dispose() - { - throw new NotImplementedException(); - } - - public IList GetAssemblyAttributes() - { - throw new NotImplementedException(); - } - #endregion - - protected virtual void OnReferencedContentsChanged(EventArgs e) - { - if (ReferencedContentsChanged != null) { - ReferencedContentsChanged(this, e); - } - } - - public bool InternalsVisibleTo(IProjectContent otherProjectContent) - { - throw new NotImplementedException(); - } - - public string AssemblyName { - get { - throw new NotImplementedException(); - } - } - - public List GetAllContents() - { - throw new NotImplementedException(); - } - - public void AddAllContents(List list, LanguageProperties language, bool lookInReferences) - { - throw new NotImplementedException(); - } - } -} diff --git a/src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln b/src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln index 5574b12df1..14c8edc2d8 100644 --- a/src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln +++ b/src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln @@ -6,10 +6,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting", "Pr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting.Tests", "Test\ICSharpCode.Scripting.Tests.csproj", "{85C09AD8-183B-403A-869A-7226646218A9}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTesting.Tests", "..\..\Analysis\UnitTesting\Test\UnitTesting.Tests.csproj", "{44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTesting", "..\..\Analysis\UnitTesting\UnitTesting.csproj", "{1F261725-6318-4434-A1B1-6C70CE4CD324}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 Release|x86 = Release|x86 + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {7048AE18-EB93-4A84-82D0-DD60EB58ADBD}.Debug|x86.Build.0 = Debug|x86 @@ -20,5 +26,21 @@ Global {85C09AD8-183B-403A-869A-7226646218A9}.Debug|x86.ActiveCfg = Debug|x86 {85C09AD8-183B-403A-869A-7226646218A9}.Release|x86.Build.0 = Release|x86 {85C09AD8-183B-403A-869A-7226646218A9}.Release|x86.ActiveCfg = Release|x86 + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Debug|x86.Build.0 = Debug|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Debug|x86.ActiveCfg = Debug|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Release|x86.Build.0 = Release|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Release|x86.ActiveCfg = Release|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Debug|Any CPU.Build.0 = Debug|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Release|Any CPU.Build.0 = Release|Any CPU + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Debug|x86.Build.0 = Debug|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Debug|x86.ActiveCfg = Debug|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Release|x86.Build.0 = Release|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Release|x86.ActiveCfg = Release|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Release|Any CPU.Build.0 = Release|Any CPU + {1F261725-6318-4434-A1B1-6C70CE4CD324}.Release|Any CPU.ActiveCfg = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj b/src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj index 9a43b501f3..87c07edac6 100644 --- a/src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj +++ b/src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj @@ -99,6 +99,7 @@ + @@ -114,6 +115,7 @@ + @@ -136,6 +138,10 @@ {924EE450-603D-49C1-A8E5-4AFAA31CE6F3} ICSharpCode.SharpDevelop.Dom + + {44A8DE09-CAB9-49D8-9CFC-5EB0A552F181} + UnitTesting.Tests + {7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57} FormsDesigner diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/MockProjectContent.cs b/src/AddIns/BackendBindings/Scripting/Test/Utils/MockProjectContent.cs similarity index 98% rename from src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/MockProjectContent.cs rename to src/AddIns/BackendBindings/Scripting/Test/Utils/MockProjectContent.cs index 39c1652d8b..a92778f38c 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/MockProjectContent.cs +++ b/src/AddIns/BackendBindings/Scripting/Test/Utils/MockProjectContent.cs @@ -10,11 +10,8 @@ using System.Collections; using System.Collections.Generic; using ICSharpCode.SharpDevelop.Dom; -namespace PythonBinding.Tests.Utils +namespace ICSharpCode.Scripting.Tests.Utils { - /// - /// Mock IProjectContent implementation. - /// public class MockProjectContent : IProjectContent { string namespacePassedToNamespaceExistsMethod; diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/Tests/MockProjectContentTests.cs b/src/AddIns/BackendBindings/Scripting/Test/Utils/Tests/MockProjectContentTests.cs similarity index 93% rename from src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/Tests/MockProjectContentTests.cs rename to src/AddIns/BackendBindings/Scripting/Test/Utils/Tests/MockProjectContentTests.cs index bd3b3e4339..7534f5b43a 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/Tests/MockProjectContentTests.cs +++ b/src/AddIns/BackendBindings/Scripting/Test/Utils/Tests/MockProjectContentTests.cs @@ -7,24 +7,23 @@ using System; using System.Collections.Generic; -using ICSharpCode.PythonBinding; +using ICSharpCode.Scripting.Tests.Utils; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; -using PythonBinding.Tests.Utils; using UnitTesting.Tests.Utils; -namespace PythonBinding.Tests.Utils.Tests +namespace ICSharpCode.Scripting.Tests.Utils.Tests { [TestFixture] public class MockProjectContentTests { - PythonBinding.Tests.Utils.MockProjectContent projectContent; + ICSharpCode.Scripting.Tests.Utils.MockProjectContent projectContent; List items; [SetUp] public void Init() { - projectContent = new PythonBinding.Tests.Utils.MockProjectContent(); + projectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent(); items = new List(); } @@ -32,7 +31,7 @@ namespace PythonBinding.Tests.Utils.Tests public void AddNamespaceContentsAddsNamespaces() { projectContent.NamespacesToAdd.Add("test"); - projectContent.AddNamespaceContents(items, String.Empty, PythonLanguageProperties.Default, false); + projectContent.AddNamespaceContents(items, String.Empty, null, false); List expectedItems = new List(); expectedItems.Add(new NamespaceEntry("test")); @@ -45,7 +44,7 @@ namespace PythonBinding.Tests.Utils.Tests { MockClass c = new MockClass(new MockProjectContent(), "TestClass"); projectContent.ClassesInProjectContent.Add(c); - projectContent.AddNamespaceContents(items, String.Empty, PythonLanguageProperties.Default, false); + projectContent.AddNamespaceContents(items, String.Empty, null, false); List expectedItems = new List(); expectedItems.Add(c);