Browse Source

Move common MockProjectContent to ICSharpCode.Scripting.Tests project.

pull/1/head
mrward 15 years ago
parent
commit
ec073af6f8
  1. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs
  2. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs
  3. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs
  4. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs
  5. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs
  6. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs
  7. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs
  8. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs
  9. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs
  10. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs
  11. 4
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs
  12. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs
  13. 4
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs
  14. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs
  15. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs
  16. 2
      src/AddIns/BackendBindings/Python/PythonBinding/Test/PythonBinding.Tests.csproj
  17. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs
  18. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs
  19. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs
  20. 2
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs
  21. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs
  22. 4
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs
  23. 4
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs
  24. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs
  25. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs
  26. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs
  27. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs
  28. 1
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs
  29. 1
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs
  30. 3
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs
  31. 1
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj
  32. 374
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs
  33. 22
      src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln
  34. 6
      src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj
  35. 5
      src/AddIns/BackendBindings/Scripting/Test/Utils/MockProjectContent.cs
  36. 13
      src/AddIns/BackendBindings/Scripting/Test/Utils/Tests/MockProjectContentTests.cs

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromDateTimeImportCompletionTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportDotNetNamespaceCompletionTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromImportPythonModuleCompletionTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCompletionTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromMathLibraryImportCosMethodCompletionTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/FromSysLibraryImportCompletionItemsTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportCompletionTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportEmptyNamespaceCompletionTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportResolveResultReturnsNoCompletionItemsIfExpressionHasIdentifierTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/ImportSubNamespaceCompletionTestFixture.cs

@ -7,8 +7,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

4
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/NamespaceContentsAddedToCtrlSpaceTestFixture.cs

@ -26,14 +26,14 @@ namespace PythonBinding.Tests.Resolver
{ {
List<ICompletionEntry> results; List<ICompletionEntry> results;
PythonResolver resolver; PythonResolver resolver;
PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent;
MockClass myTestClass; MockClass myTestClass;
[TestFixtureSetUp] [TestFixtureSetUp]
public void SetUpFixture() public void SetUpFixture()
{ {
resolver = new PythonResolver(); resolver = new PythonResolver();
mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
mockProjectContent.NamespacesToAdd.Add("Test"); mockProjectContent.NamespacesToAdd.Add("Test");
myTestClass = new MockClass(mockProjectContent, "MyTestClass"); myTestClass = new MockClass(mockProjectContent, "MyTestClass");
List<ICompletionEntry> namespaceItems = new List<ICompletionEntry>(); List<ICompletionEntry> namespaceItems = new List<ICompletionEntry>();

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/PythonImportExpressionContextTestFixture.cs

@ -7,6 +7,7 @@
using System; using System;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

4
src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/ProjectHasStartupObjectTestFixture.cs

@ -33,7 +33,7 @@ namespace PythonBinding.Tests.Converter
FileProjectItem targetMain2File; FileProjectItem targetMain2File;
MSBuildBasedProject sourceProject; MSBuildBasedProject sourceProject;
PythonProject targetProject; PythonProject targetProject;
PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent;
string startupObject = "RootNamespace.Main"; string startupObject = "RootNamespace.Main";
@ -66,7 +66,7 @@ namespace PythonBinding.Tests.Converter
// Set up IProjectContent so the ConvertProjectToPythonProjectCommand can // Set up IProjectContent so the ConvertProjectToPythonProjectCommand can
// locate the startup object and determine it's filename. // 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); MockClass mainClass = new MockClass(mockProjectContent, startupObject);
mainClass.CompilationUnit.FileName = @"d:\projects\test\src\Main2.cs"; mainClass.CompilationUnit.FileName = @"d:\projects\test\src\Main2.cs";
mockProjectContent.ClassToReturnFromGetClass = mainClass; mockProjectContent.ClassToReturnFromGetClass = mainClass;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs

@ -7,6 +7,7 @@
using System; using System;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/IsFormDesignableTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using ICSharpCode.FormsDesigner; using ICSharpCode.FormsDesigner;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

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

@ -442,7 +442,6 @@
<Compile Include="Utils\DerivedPythonFormsDesignerDisplayBinding.cs" /> <Compile Include="Utils\DerivedPythonFormsDesignerDisplayBinding.cs" />
<Compile Include="Utils\MockConsoleTextEditor.cs" /> <Compile Include="Utils\MockConsoleTextEditor.cs" />
<Compile Include="Utils\MockDesignerGenerator.cs" /> <Compile Include="Utils\MockDesignerGenerator.cs" />
<Compile Include="Utils\MockProjectContent.cs" />
<Compile Include="Utils\MockPythonConsole.cs" /> <Compile Include="Utils\MockPythonConsole.cs" />
<Compile Include="Utils\MockPythonConsolePad.cs" /> <Compile Include="Utils\MockPythonConsolePad.cs" />
<Compile Include="Utils\MockPythonFileService.cs" /> <Compile Include="Utils\MockPythonFileService.cs" />
@ -459,7 +458,6 @@
<Compile Include="Utils\PythonCompletionItemsHelper.cs" /> <Compile Include="Utils\PythonCompletionItemsHelper.cs" />
<Compile Include="Utils\PythonParserHelper.cs" /> <Compile Include="Utils\PythonParserHelper.cs" />
<Compile Include="Utils\Tests\MockConsoleTextEditorTestFixture.cs" /> <Compile Include="Utils\Tests\MockConsoleTextEditorTestFixture.cs" />
<Compile Include="Utils\Tests\MockProjectContentTests.cs" />
<Compile Include="Utils\Tests\MockPythonFileServiceTestFixture.cs" /> <Compile Include="Utils\Tests\MockPythonFileServiceTestFixture.cs" />
<Compile Include="Utils\Tests\PythonCompletionItemsHelperTests.cs" /> <Compile Include="Utils\Tests\PythonCompletionItemsHelperTests.cs" />
<Compile Include="Utils\Tests\PythonParserHelperTests.cs" /> <Compile Include="Utils\Tests\PythonParserHelperTests.cs" />

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ImportModuleResolveResultTests.cs

@ -7,6 +7,7 @@
using System; using System;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFooWindowsWithImportSystemAsFooTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromImportTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections; using System.Collections;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

2
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveFromMathImportedMathModuleCompletionItemsTestFixture.cs

@ -8,7 +8,9 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveImportsTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

4
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveLocalClassInstanceTestFixture.cs

@ -28,7 +28,7 @@ namespace PythonBinding.Tests.Resolver
public class ResolveLocalClassInstanceTestFixture public class ResolveLocalClassInstanceTestFixture
{ {
PythonResolver resolver; PythonResolver resolver;
PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent;
LocalResolveResult resolveResult; LocalResolveResult resolveResult;
MockClass testClass; MockClass testClass;
ICompilationUnit compilationUnit; ICompilationUnit compilationUnit;
@ -38,7 +38,7 @@ namespace PythonBinding.Tests.Resolver
{ {
resolver = new PythonResolver(); resolver = new PythonResolver();
mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
testClass = new MockClass(mockProjectContent, "Test.Test1"); testClass = new MockClass(mockProjectContent, "Test.Test1");
mockProjectContent.ClassesInProjectContent.Add(testClass); mockProjectContent.ClassesInProjectContent.Add(testClass);
mockProjectContent.ClassToReturnFromGetClass = testClass; mockProjectContent.ClassToReturnFromGetClass = testClass;

4
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemConsoleTestFixture.cs

@ -24,7 +24,7 @@ namespace PythonBinding.Tests.Resolver
public class ResolveSystemConsoleTestFixture public class ResolveSystemConsoleTestFixture
{ {
PythonResolver resolver; PythonResolver resolver;
PythonBinding.Tests.Utils.MockProjectContent mockProjectContent; ICSharpCode.Scripting.Tests.Utils.MockProjectContent mockProjectContent;
ResolveResult resolveResult; ResolveResult resolveResult;
MockClass testClass; MockClass testClass;
ICompilationUnit compilationUnit; ICompilationUnit compilationUnit;
@ -35,7 +35,7 @@ namespace PythonBinding.Tests.Resolver
public void SetUpFixture() public void SetUpFixture()
{ {
resolver = new PythonResolver(); resolver = new PythonResolver();
mockProjectContent = new PythonBinding.Tests.Utils.MockProjectContent(); mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
systemConsoleClass = new MockClass(mockProjectContent, "System.Console"); systemConsoleClass = new MockClass(mockProjectContent, "System.Console");
mockProjectContent.ClassToReturnFromGetClass = systemConsoleClass; mockProjectContent.ClassToReturnFromGetClass = systemConsoleClass;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemNamespaceTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsFormsWithImportSystemTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveSystemWindowsWithImportSystemTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests; using PythonBinding.Tests;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolveTestFixtureBase.cs

@ -7,6 +7,7 @@
using System; using System;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Python/PythonBinding/Test/Resolver/ResolverContextPartialNamespaceExistsTests.cs

@ -8,6 +8,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.PythonBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;

1
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/FindInitializeComponentMethodTestFixture.cs

@ -7,6 +7,7 @@
using System; using System;
using ICSharpCode.RubyBinding; using ICSharpCode.RubyBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using RubyBinding.Tests.Utils; using RubyBinding.Tests.Utils;

3
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/IsFormDesignableTestFixture.cs

@ -8,6 +8,7 @@
using System; using System;
using ICSharpCode.FormsDesigner; using ICSharpCode.FormsDesigner;
using ICSharpCode.RubyBinding; using ICSharpCode.RubyBinding;
using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using RubyBinding.Tests.Utils; using RubyBinding.Tests.Utils;
@ -33,7 +34,7 @@ namespace RubyBinding.Tests.Designer
{ {
RubyParser parser = new RubyParser(); RubyParser parser = new RubyParser();
MockProjectContent mockProjectContent = new MockProjectContent(); 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); parseInfo = new ParseInformation(compilationUnit);

1
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/RubyBinding.Tests.csproj

@ -335,7 +335,6 @@
<Compile Include="Utils\DerivedRubyDesignerLoader.cs" /> <Compile Include="Utils\DerivedRubyDesignerLoader.cs" />
<Compile Include="Utils\DerivedRubyFormsDesignerDisplayBinding.cs" /> <Compile Include="Utils\DerivedRubyFormsDesignerDisplayBinding.cs" />
<Compile Include="Utils\MockDesignerGenerator.cs" /> <Compile Include="Utils\MockDesignerGenerator.cs" />
<Compile Include="Utils\MockProjectContent.cs" />
<Compile Include="Utils\MockRubyConsole.cs" /> <Compile Include="Utils\MockRubyConsole.cs" />
<Compile Include="Utils\MockRubyConsolePad.cs" /> <Compile Include="Utils\MockRubyConsolePad.cs" />
<Compile Include="Utils\MockRubyFileService.cs" /> <Compile Include="Utils\MockRubyFileService.cs" />

374
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Utils/MockProjectContent.cs

@ -1,374 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections;
using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
namespace RubyBinding.Tests.Utils
{
/// <summary>
/// Mock IProjectContent implementation.
/// </summary>
public class MockProjectContent : IProjectContent
{
bool addNamespaceContentsCalled;
string namespaceAddedName;
string namespaceSearchedFor;
bool lookInReferences;
LanguageProperties languagePassedToAddNamespaceContents;
LanguageProperties language = new LanguageProperties(StringComparer.InvariantCulture);
List<string> namespacesToAdd = new List<string>();
SearchTypeResult searchTypeResult;
bool searchTypeCalled;
SearchTypeRequest searchTypeRequest;
IClass classToReturnFromGetClass;
bool getClassCalled;
string getClassName;
List<IClass> classesInProjectContent = new List<IClass>();
List<ICompletionEntry> namespaceContents = new List<ICompletionEntry>();
string namespaceContentsSearched = String.Empty;
string classNameForGetClass;
bool namespaceExistsReturnValue;
bool namespaceExistsCalled;
object project;
public MockProjectContent()
{
}
/// <summary>
/// Gets whether the AddNamespaceContents method was called.
/// </summary>
public bool AddNamespaceContentsCalled {
get { return addNamespaceContentsCalled; }
}
/// <summary>
/// Gets the namespace passed to the AddNamespaceContents method.
/// </summary>
public string NamespaceAddedName {
get { return namespaceAddedName; }
}
/// <summary>
/// Gets the LookInReferences flag that was passed to the
/// AddNamespaceContents method.
/// </summary>
public bool LookInReferences {
get { return lookInReferences; }
}
public LanguageProperties LanguagePassedToAddNamespaceContents {
get { return languagePassedToAddNamespaceContents; }
}
/// <summary>
/// Gets the namespaces that will be added when the
/// AddNamespaceContents method is called.
/// </summary>
public List<string> NamespacesToAdd {
get { return namespacesToAdd; }
}
/// <summary>
/// Gets whether the NamespaceExists method was called.
/// </summary>
public bool NamespaceExistsCalled {
get { return namespaceExistsCalled; }
}
/// <summary>
/// Gets the namespace passed to the SearchNamespace method and
/// searched for.
/// </summary>
public string NamespaceSearchedFor {
get { return namespaceSearchedFor; }
set { namespaceSearchedFor = value; }
}
/// <summary>
/// Gets or sets the SearchTypeResult to return from the
/// SearchType method.
/// </summary>
public SearchTypeResult SearchTypeResultToReturn {
get { return searchTypeResult; }
set { searchTypeResult = value; }
}
/// <summary>
/// Gets whether the SearchType method was called.
/// </summary>
public bool SearchTypeCalled {
get { return searchTypeCalled; }
}
/// <summary>
/// Gets the search type request passed to the SearchType method.
/// </summary>
public SearchTypeRequest SearchTypeRequest {
get { return searchTypeRequest; }
}
/// <summary>
/// Gets or sets the class to return from the GetClass Method.
/// </summary>
public IClass ClassToReturnFromGetClass
{
get { return classToReturnFromGetClass; }
set { classToReturnFromGetClass = value; }
}
/// <summary>
/// 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.
/// </summary>
public string ClassNameForGetClass {
get { return classNameForGetClass; }
set { classNameForGetClass = value; }
}
/// <summary>
/// Gets whether the GetClass method was called.
/// </summary>
public bool GetClassCalled {
get { return getClassCalled; }
}
/// <summary>
/// Gets the name passed to the GetClass method.
/// </summary>
public string GetClassName {
get { return getClassName; }
}
/// <summary>
/// Gets the namespace contents to return from the
/// GetNamespaceContents method.
/// </summary>
public List<ICompletionEntry> NamespaceContentsToReturn {
get { return namespaceContents; }
}
/// <summary>
/// Returns the namespace that was passed to the
/// GetNamespaceContents method.
/// </summary>
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<IClass> Classes {
get {
throw new NotImplementedException();
}
}
public ICollection<string> NamespaceNames {
get {
throw new NotImplementedException();
}
}
public ICollection<IProjectContent> 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<ICompletionEntry> 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<ICompletionEntry> 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);
}
}
/// <summary>
/// Gets the list of classes that will be added to the list
/// when the AddNamespaceContents is called.
/// </summary>
public List<IClass> 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<IAttribute> 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<ICompletionEntry> GetAllContents()
{
throw new NotImplementedException();
}
public void AddAllContents(List<ICompletionEntry> list, LanguageProperties language, bool lookInReferences)
{
throw new NotImplementedException();
}
}
}

22
src/AddIns/BackendBindings/Scripting/ICSharpCode.Scripting.sln

@ -6,10 +6,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting", "Pr
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting.Tests", "Test\ICSharpCode.Scripting.Tests.csproj", "{85C09AD8-183B-403A-869A-7226646218A9}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting.Tests", "Test\ICSharpCode.Scripting.Tests.csproj", "{85C09AD8-183B-403A-869A-7226646218A9}"
EndProject 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 Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86 Debug|x86 = Debug|x86
Release|x86 = Release|x86 Release|x86 = Release|x86
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7048AE18-EB93-4A84-82D0-DD60EB58ADBD}.Debug|x86.Build.0 = Debug|x86 {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}.Debug|x86.ActiveCfg = Debug|x86
{85C09AD8-183B-403A-869A-7226646218A9}.Release|x86.Build.0 = Release|x86 {85C09AD8-183B-403A-869A-7226646218A9}.Release|x86.Build.0 = Release|x86
{85C09AD8-183B-403A-869A-7226646218A9}.Release|x86.ActiveCfg = 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 EndGlobalSection
EndGlobal EndGlobal

6
src/AddIns/BackendBindings/Scripting/Test/ICSharpCode.Scripting.Tests.csproj

@ -99,6 +99,7 @@
<Compile Include="Utils\MockMemberProvider.cs" /> <Compile Include="Utils\MockMemberProvider.cs" />
<Compile Include="Utils\MockOpenedFile.cs" /> <Compile Include="Utils\MockOpenedFile.cs" />
<Compile Include="Utils\MockProject.cs" /> <Compile Include="Utils\MockProject.cs" />
<Compile Include="Utils\MockProjectContent.cs" />
<Compile Include="Utils\MockPropertyDescriptor.cs" /> <Compile Include="Utils\MockPropertyDescriptor.cs" />
<Compile Include="Utils\MockResourceReader.cs" /> <Compile Include="Utils\MockResourceReader.cs" />
<Compile Include="Utils\MockResourceService.cs" /> <Compile Include="Utils\MockResourceService.cs" />
@ -114,6 +115,7 @@
<Compile Include="Utils\Tests\MockComponentCreatorTests.cs" /> <Compile Include="Utils\Tests\MockComponentCreatorTests.cs" />
<Compile Include="Utils\Tests\MockControlDispatcherTestFixture.cs" /> <Compile Include="Utils\Tests\MockControlDispatcherTestFixture.cs" />
<Compile Include="Utils\Tests\MockEditableViewContentTestFixture.cs" /> <Compile Include="Utils\Tests\MockEditableViewContentTestFixture.cs" />
<Compile Include="Utils\Tests\MockProjectContentTests.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\..\..\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\ICSharpCode.AvalonEdit.csproj"> <ProjectReference Include="..\..\..\..\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\ICSharpCode.AvalonEdit.csproj">
@ -136,6 +138,10 @@
<Project>{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}</Project> <Project>{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}</Project>
<Name>ICSharpCode.SharpDevelop.Dom</Name> <Name>ICSharpCode.SharpDevelop.Dom</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\..\Analysis\UnitTesting\Test\UnitTesting.Tests.csproj">
<Project>{44A8DE09-CAB9-49D8-9CFC-5EB0A552F181}</Project>
<Name>UnitTesting.Tests</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>

5
src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/MockProjectContent.cs → src/AddIns/BackendBindings/Scripting/Test/Utils/MockProjectContent.cs

@ -10,11 +10,8 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
namespace PythonBinding.Tests.Utils namespace ICSharpCode.Scripting.Tests.Utils
{ {
/// <summary>
/// Mock IProjectContent implementation.
/// </summary>
public class MockProjectContent : IProjectContent public class MockProjectContent : IProjectContent
{ {
string namespacePassedToNamespaceExistsMethod; string namespacePassedToNamespaceExistsMethod;

13
src/AddIns/BackendBindings/Python/PythonBinding/Test/Utils/Tests/MockProjectContentTests.cs → src/AddIns/BackendBindings/Scripting/Test/Utils/Tests/MockProjectContentTests.cs

@ -7,24 +7,23 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using ICSharpCode.PythonBinding; using ICSharpCode.Scripting.Tests.Utils;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils;
using UnitTesting.Tests.Utils; using UnitTesting.Tests.Utils;
namespace PythonBinding.Tests.Utils.Tests namespace ICSharpCode.Scripting.Tests.Utils.Tests
{ {
[TestFixture] [TestFixture]
public class MockProjectContentTests public class MockProjectContentTests
{ {
PythonBinding.Tests.Utils.MockProjectContent projectContent; ICSharpCode.Scripting.Tests.Utils.MockProjectContent projectContent;
List<ICompletionEntry> items; List<ICompletionEntry> items;
[SetUp] [SetUp]
public void Init() public void Init()
{ {
projectContent = new PythonBinding.Tests.Utils.MockProjectContent(); projectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
items = new List<ICompletionEntry>(); items = new List<ICompletionEntry>();
} }
@ -32,7 +31,7 @@ namespace PythonBinding.Tests.Utils.Tests
public void AddNamespaceContentsAddsNamespaces() public void AddNamespaceContentsAddsNamespaces()
{ {
projectContent.NamespacesToAdd.Add("test"); projectContent.NamespacesToAdd.Add("test");
projectContent.AddNamespaceContents(items, String.Empty, PythonLanguageProperties.Default, false); projectContent.AddNamespaceContents(items, String.Empty, null, false);
List<ICompletionEntry> expectedItems = new List<ICompletionEntry>(); List<ICompletionEntry> expectedItems = new List<ICompletionEntry>();
expectedItems.Add(new NamespaceEntry("test")); expectedItems.Add(new NamespaceEntry("test"));
@ -45,7 +44,7 @@ namespace PythonBinding.Tests.Utils.Tests
{ {
MockClass c = new MockClass(new MockProjectContent(), "TestClass"); MockClass c = new MockClass(new MockProjectContent(), "TestClass");
projectContent.ClassesInProjectContent.Add(c); projectContent.ClassesInProjectContent.Add(c);
projectContent.AddNamespaceContents(items, String.Empty, PythonLanguageProperties.Default, false); projectContent.AddNamespaceContents(items, String.Empty, null, false);
List<ICompletionEntry> expectedItems = new List<ICompletionEntry>(); List<ICompletionEntry> expectedItems = new List<ICompletionEntry>();
expectedItems.Add(c); expectedItems.Add(c);
Loading…
Cancel
Save