1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections;
6
using System.Collections.Generic;
7
using ICSharpCode.SharpDevelop.Dom;
8
using ICSharpCode.SharpDevelop.Editor.CodeCompletion;
9
using ICSharpCode.SharpDevelop.Project;
11
namespace UnitTesting.Tests.Utils
13
public class MockProjectContent : IProjectContent
15
LanguageProperties language = LanguageProperties.CSharp;
16
List<IClass> classes = new List<IClass>();
19
public MockProjectContent()
23
public event EventHandler ReferencedContentsChanged;
25
public XmlDoc XmlDoc {
27
throw new NotImplementedException();
31
public ICollection<IClass> Classes {
32
get { return classes; }
35
public ICollection<string> NamespaceNames {
37
throw new NotImplementedException();
41
public ICollection<IProjectContent> ReferencedContents {
43
throw new NotImplementedException();
47
public LanguageProperties Language {
48
get { return language; }
49
set { language = value; }
52
public IUsing DefaultImports {
54
throw new NotImplementedException();
58
public object Project {
59
get { return project; }
60
set { project = value; }
63
public IProject ProjectAsIProject {
64
get { return project as IProject; }
67
public SystemTypes SystemTypes {
68
get { return new SystemTypes(this); }
71
public string GetXmlDocumentation(string memberTag)
73
throw new NotImplementedException();
76
public void AddClassToNamespaceList(IClass addClass)
78
throw new NotImplementedException();
81
public void RemoveCompilationUnit(ICompilationUnit oldUnit)
83
throw new NotImplementedException();
86
public void UpdateCompilationUnit(ICompilationUnit oldUnit, ICompilationUnit parserOutput, string fileName)
88
throw new NotImplementedException();
91
public IClass GetClass(string typeName)
93
throw new NotImplementedException();
96
public IClass GetClass(string typeName, int typeParameterCount)
98
MockClass c = new MockClass(this);
99
c.FullyQualifiedName = typeName;
103
public bool NamespaceExists(string name)
105
throw new NotImplementedException();
108
public List<ICompletionEntry> GetNamespaceContents(string nameSpace)
110
throw new NotImplementedException();
113
public IClass GetClass(string typeName, int typeParameterCount, LanguageProperties language, GetClassOptions options)
115
throw new NotImplementedException();
118
public bool NamespaceExists(string name, LanguageProperties language, bool lookInReferences)
120
throw new NotImplementedException();
123
public void AddNamespaceContents(List<ICompletionEntry> list, string subNameSpace, LanguageProperties language, bool lookInReferences)
125
throw new NotImplementedException();
128
public string SearchNamespace(string name, IClass curType, ICompilationUnit unit, int caretLine, int caretColumn)
130
throw new NotImplementedException();
133
public SearchTypeResult SearchType(SearchTypeRequest request)
135
throw new NotImplementedException();
138
public IClass GetClassByReflectionName(string fullMemberName, bool lookInReferences)
140
throw new NotImplementedException();
143
public FilePosition GetPosition(IEntity entity)
145
throw new NotImplementedException();
148
public void Dispose()
150
throw new NotImplementedException();
153
void OnReferencedContentsChanged()
155
if (ReferencedContentsChanged != null) {
156
ReferencedContentsChanged(this, new EventArgs());
160
public bool IsUpToDate {
162
throw new NotImplementedException();
166
public IList<IAttribute> GetAssemblyAttributes()
168
throw new NotImplementedException();
171
public bool InternalsVisibleTo(IProjectContent otherProjectContent)
173
throw new NotImplementedException();
176
public string AssemblyName {
177
get { return String.Empty; }
180
public void AddAllContents(List<ICompletionEntry> list, LanguageProperties language, bool lookInReferences)
182
throw new NotImplementedException();
185
public List<ICompletionEntry> GetAllContents()
187
throw new NotImplementedException();