You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
// <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.Generic; |
|
using ICSharpCode.SharpDevelop.Dom; |
|
using ICSharpCode.PythonBinding; |
|
using NUnit.Framework; |
|
using PythonBinding.Tests.Utils; |
|
|
|
namespace PythonBinding.Tests.Completion |
|
{ |
|
[TestFixture] |
|
public class ImportEmptyNamespaceCompletionTestFixture |
|
{ |
|
List<ICompletionEntry> completionItems; |
|
MockProjectContent projectContent; |
|
|
|
[SetUp] |
|
public void Init() |
|
{ |
|
projectContent = new MockProjectContent(); |
|
ParseInformation parseInfo = new ParseInformation(new DefaultCompilationUnit(projectContent)); |
|
|
|
PythonImportCompletion completion = new PythonImportCompletion(projectContent); |
|
completionItems = completion.GetCompletionItems(String.Empty); |
|
} |
|
|
|
[Test] |
|
public void StandardMathPythonModuleIsAddedToCompletionItems() |
|
{ |
|
Assert.Contains(new NamespaceEntry("math"), completionItems); |
|
} |
|
} |
|
}
|
|
|