public void SetUpFixture()
        {
            resolver           = new PythonResolver();
            mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
            mockProjectContent.NamespacesToAdd.Add("Test");
            myTestClass = new MockClass(mockProjectContent, "MyTestClass");
            List <ICompletionEntry> namespaceItems = new List <ICompletionEntry>();

            namespaceItems.Add(myTestClass);
            mockProjectContent.AddExistingNamespaceContents("MyNamespace", namespaceItems);

            DefaultCompilationUnit cu = new DefaultCompilationUnit(mockProjectContent);

            // Add usings.
            DefaultUsing newUsing = new DefaultUsing(cu.ProjectContent);

            newUsing.Usings.Add("MyNamespace");
            DefaultUsingScope usingScope = new DefaultUsingScope();

            usingScope.Usings.Add(newUsing);
            cu.UsingScope = usingScope;
            ParseInformation parseInfo = new ParseInformation(cu);

            results = resolver.CtrlSpace(0, "".Length, parseInfo, "", ExpressionContext.Default);
        }
		public void SetUpFixture()
		{
			resolver = new PythonResolver();
			mockProjectContent = new ICSharpCode.Scripting.Tests.Utils.MockProjectContent();
			mockProjectContent.NamespacesToAdd.Add("Test");
			myTestClass = new MockClass(mockProjectContent, "MyTestClass");
			List<ICompletionEntry> namespaceItems = new List<ICompletionEntry>();
			namespaceItems.Add(myTestClass);
			mockProjectContent.AddExistingNamespaceContents("MyNamespace", namespaceItems);
			
			DefaultCompilationUnit cu = new DefaultCompilationUnit(mockProjectContent);
			
			// Add usings.
			DefaultUsing newUsing = new DefaultUsing(cu.ProjectContent);
			newUsing.Usings.Add("MyNamespace");
			DefaultUsingScope usingScope = new DefaultUsingScope();
			usingScope.Usings.Add(newUsing);
			cu.UsingScope = usingScope;
			ParseInformation parseInfo = new ParseInformation(cu);
			
			results = resolver.CtrlSpace(0, "".Length, parseInfo, "", ExpressionContext.Default);
		}