~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Analysis/UnitTesting/Test/Utils/MockProjectContent.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
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;
 
10
 
 
11
namespace UnitTesting.Tests.Utils
 
12
{
 
13
        public class MockProjectContent : IProjectContent
 
14
        {
 
15
                LanguageProperties language = LanguageProperties.CSharp;
 
16
                List<IClass> classes = new List<IClass>();
 
17
                object project;
 
18
                
 
19
                public MockProjectContent()
 
20
                {
 
21
                }
 
22
                
 
23
                public event EventHandler ReferencedContentsChanged;
 
24
                
 
25
                public XmlDoc XmlDoc {
 
26
                        get {
 
27
                                throw new NotImplementedException();
 
28
                        }
 
29
                }
 
30
                
 
31
                public ICollection<IClass> Classes {
 
32
                        get { return classes; }
 
33
                }
 
34
                
 
35
                public ICollection<string> NamespaceNames {
 
36
                        get {
 
37
                                throw new NotImplementedException();
 
38
                        }
 
39
                }
 
40
                
 
41
                public ICollection<IProjectContent> ReferencedContents {
 
42
                        get {
 
43
                                throw new NotImplementedException();
 
44
                        }
 
45
                }
 
46
                
 
47
                public LanguageProperties Language {
 
48
                        get { return language; }
 
49
                        set { language = value; }
 
50
                }
 
51
                
 
52
                public IUsing DefaultImports {
 
53
                        get {
 
54
                                throw new NotImplementedException();
 
55
                        }
 
56
                }
 
57
                
 
58
                public object Project {
 
59
                        get { return project; }
 
60
                        set { project = value; }
 
61
                }
 
62
                
 
63
                public IProject ProjectAsIProject {
 
64
                        get { return project as IProject; }
 
65
                }
 
66
                
 
67
                public SystemTypes SystemTypes {
 
68
                        get { return new SystemTypes(this); }
 
69
                }
 
70
                
 
71
                public string GetXmlDocumentation(string memberTag)
 
72
                {
 
73
                        throw new NotImplementedException();
 
74
                }
 
75
                
 
76
                public void AddClassToNamespaceList(IClass addClass)
 
77
                {
 
78
                        throw new NotImplementedException();
 
79
                }
 
80
                
 
81
                public void RemoveCompilationUnit(ICompilationUnit oldUnit)
 
82
                {
 
83
                        throw new NotImplementedException();
 
84
                }
 
85
                
 
86
                public void UpdateCompilationUnit(ICompilationUnit oldUnit, ICompilationUnit parserOutput, string fileName)
 
87
                {
 
88
                        throw new NotImplementedException();
 
89
                }
 
90
                
 
91
                public IClass GetClass(string typeName)
 
92
                {
 
93
                        throw new NotImplementedException();
 
94
                }
 
95
                
 
96
                public IClass GetClass(string typeName, int typeParameterCount)
 
97
                {
 
98
                        MockClass c = new MockClass(this);
 
99
                        c.FullyQualifiedName = typeName;
 
100
                        return c;
 
101
                }
 
102
                
 
103
                public bool NamespaceExists(string name)
 
104
                {
 
105
                        throw new NotImplementedException();
 
106
                }
 
107
                
 
108
                public List<ICompletionEntry> GetNamespaceContents(string nameSpace)
 
109
                {
 
110
                        throw new NotImplementedException();
 
111
                }
 
112
                
 
113
                public IClass GetClass(string typeName, int typeParameterCount, LanguageProperties language, GetClassOptions options)
 
114
                {
 
115
                        throw new NotImplementedException();
 
116
                }
 
117
                
 
118
                public bool NamespaceExists(string name, LanguageProperties language, bool lookInReferences)
 
119
                {
 
120
                        throw new NotImplementedException();
 
121
                }
 
122
                
 
123
                public void AddNamespaceContents(List<ICompletionEntry> list, string subNameSpace, LanguageProperties language, bool lookInReferences)
 
124
                {
 
125
                        throw new NotImplementedException();
 
126
                }
 
127
                
 
128
                public string SearchNamespace(string name, IClass curType, ICompilationUnit unit, int caretLine, int caretColumn)
 
129
                {
 
130
                        throw new NotImplementedException();
 
131
                }
 
132
                
 
133
                public SearchTypeResult SearchType(SearchTypeRequest request)
 
134
                {
 
135
                        throw new NotImplementedException();
 
136
                }
 
137
                
 
138
                public IClass GetClassByReflectionName(string fullMemberName, bool lookInReferences)
 
139
                {
 
140
                        throw new NotImplementedException();
 
141
                }
 
142
                
 
143
                public FilePosition GetPosition(IEntity entity)
 
144
                {
 
145
                        throw new NotImplementedException();
 
146
                }
 
147
                
 
148
                public void Dispose()
 
149
                {
 
150
                        throw new NotImplementedException();
 
151
                }
 
152
                
 
153
                void OnReferencedContentsChanged()
 
154
                {
 
155
                        if (ReferencedContentsChanged != null) {
 
156
                                ReferencedContentsChanged(this, new EventArgs());
 
157
                        }
 
158
                }
 
159
                
 
160
                public bool IsUpToDate {
 
161
                        get {
 
162
                                throw new NotImplementedException();
 
163
                        }
 
164
                }
 
165
                
 
166
                public IList<IAttribute> GetAssemblyAttributes()
 
167
                {
 
168
                        throw new NotImplementedException();
 
169
                }
 
170
                
 
171
                public bool InternalsVisibleTo(IProjectContent otherProjectContent)
 
172
                {
 
173
                        throw new NotImplementedException();
 
174
                }
 
175
                
 
176
                public string AssemblyName {
 
177
                        get { return String.Empty; }
 
178
                }
 
179
                
 
180
                public void AddAllContents(List<ICompletionEntry> list, LanguageProperties language, bool lookInReferences)
 
181
                {
 
182
                        throw new NotImplementedException();
 
183
                }
 
184
                
 
185
                public List<ICompletionEntry> GetAllContents()
 
186
                {
 
187
                        throw new NotImplementedException();
 
188
                }
 
189
        }
 
190
}