@@ -10,6 +10,7 @@ namespace RubberduckTests.Symbols
10
10
[ TestClass ]
11
11
public class ClassModuleDeclarationTests
12
12
{
13
+ [ TestCategory ( "Resolver" ) ]
13
14
[ TestMethod ]
14
15
public void ClassModulesHaveDeclarationTypeClassModule ( )
15
16
{
@@ -37,6 +38,7 @@ private static ClassModuleDeclaration GetTestClassModule(Declaration projectDecl
37
38
}
38
39
39
40
41
+ [ TestCategory ( "Resolver" ) ]
40
42
[ TestMethod ]
41
43
public void ByDefaultSubtypesIsEmpty ( )
42
44
{
@@ -47,6 +49,7 @@ public void ByDefaultSubtypesIsEmpty()
47
49
}
48
50
49
51
52
+ [ TestCategory ( "Resolver" ) ]
50
53
[ TestMethod ]
51
54
public void AddSubtypeAddsClassToSubtypes ( )
52
55
{
@@ -59,6 +62,7 @@ public void AddSubtypeAddsClassToSubtypes()
59
62
}
60
63
61
64
65
+ [ TestCategory ( "Resolver" ) ]
62
66
[ TestMethod ]
63
67
public void ByDefaultSupertypesIsEmpty ( )
64
68
{
@@ -69,6 +73,7 @@ public void ByDefaultSupertypesIsEmpty()
69
73
}
70
74
71
75
76
+ [ TestCategory ( "Resolver" ) ]
72
77
[ TestMethod ]
73
78
public void AddSupertypeForDeclarationsAddsClassToSupertypes ( )
74
79
{
@@ -81,6 +86,7 @@ public void AddSupertypeForDeclarationsAddsClassToSupertypes()
81
86
}
82
87
83
88
89
+ [ TestCategory ( "Resolver" ) ]
84
90
[ TestMethod ]
85
91
public void ByDefaultSupertypeNamesIsEmpty ( )
86
92
{
@@ -91,6 +97,7 @@ public void ByDefaultSupertypeNamesIsEmpty()
91
97
}
92
98
93
99
100
+ [ TestCategory ( "Resolver" ) ]
94
101
[ TestMethod ]
95
102
public void AddSupertypeForStringsAddsTypenameToSupertypeNames ( )
96
103
{
@@ -103,6 +110,7 @@ public void AddSupertypeForStringsAddsTypenameToSupertypeNames()
103
110
}
104
111
105
112
113
+ [ TestCategory ( "Resolver" ) ]
106
114
[ TestMethod ]
107
115
public void AddSupertypeForDeclarationsHasNoEffectOnSupertypeNames ( )
108
116
{
@@ -115,6 +123,7 @@ public void AddSupertypeForDeclarationsHasNoEffectOnSupertypeNames()
115
123
}
116
124
117
125
126
+ [ TestCategory ( "Resolver" ) ]
118
127
[ TestMethod ]
119
128
public void AddSupertypeForStringsHasNoEffectsOnSupertypes ( )
120
129
{
@@ -127,6 +136,7 @@ public void AddSupertypeForStringsHasNoEffectsOnSupertypes()
127
136
}
128
137
129
138
139
+ [ TestCategory ( "Resolver" ) ]
130
140
[ TestMethod ]
131
141
public void GetSupertypesReturnsAnEmptyEnumerableForProceduralModules ( )
132
142
{
@@ -143,6 +153,7 @@ private static ProceduralModuleDeclaration GetTestProceduralModule(Declaration p
143
153
}
144
154
145
155
156
+ [ TestCategory ( "Resolver" ) ]
146
157
[ TestMethod ]
147
158
public void GetSupertypesReturnsTheSupertypesOfAClassModule ( )
148
159
{
@@ -153,8 +164,9 @@ public void GetSupertypesReturnsTheSupertypesOfAClassModule()
153
164
154
165
Assert . AreEqual ( supertype , ClassModuleDeclaration . GetSupertypes ( classModule ) . First ( ) ) ;
155
166
}
156
-
157
167
168
+
169
+ [ TestCategory ( "Resolver" ) ]
158
170
[ TestMethod ]
159
171
public void GetSupertypesReturnsAnEmptyEnumerableForDeclarationsWithDeclarationTypeClassModuleWhichAreNoClassModuleDeclarations ( )
160
172
{
@@ -172,6 +184,7 @@ private static Declaration GetTestFakeClassModule(Declaration parentDeclatation,
172
184
173
185
174
186
187
+ [ TestCategory ( "Resolver" ) ]
175
188
[ TestMethod ]
176
189
public void ByDefaultDefaultMemberIsNull ( )
177
190
{
@@ -182,6 +195,7 @@ public void ByDefaultDefaultMemberIsNull()
182
195
}
183
196
184
197
198
+ [ TestCategory ( "Resolver" ) ]
185
199
[ TestMethod ]
186
200
public void ByDefaultClassModulesNotBuiltInAreNotExposed ( )
187
201
{
@@ -194,6 +208,7 @@ public void ByDefaultClassModulesNotBuiltInAreNotExposed()
194
208
195
209
// TODO: Find out if there's info about "being exposed" in type libraries.
196
210
// We take the conservative approach of treating all type library modules as exposed.
211
+ [ TestCategory ( "Resolver" ) ]
197
212
[ TestMethod ]
198
213
public void BuiltInClassesAreExposed ( )
199
214
{
@@ -204,6 +219,7 @@ public void BuiltInClassesAreExposed()
204
219
}
205
220
206
221
222
+ [ TestCategory ( "Resolver" ) ]
207
223
[ TestMethod ]
208
224
public void ClassModulesWithTheExposedAttributeAreExposed ( )
209
225
{
@@ -216,6 +232,7 @@ public void ClassModulesWithTheExposedAttributeAreExposed()
216
232
}
217
233
218
234
235
+ [ TestCategory ( "Resolver" ) ]
219
236
[ TestMethod ]
220
237
public void ByDefaultClassModulesAreNotGlobalClasses ( )
221
238
{
@@ -226,6 +243,7 @@ public void ByDefaultClassModulesAreNotGlobalClasses()
226
243
}
227
244
228
245
246
+ [ TestCategory ( "Resolver" ) ]
229
247
[ TestMethod ]
230
248
public void ClassModulesWithTheGlobalNamespaceAttributeAreGlobalClasses ( )
231
249
{
@@ -238,6 +256,7 @@ public void ClassModulesWithTheGlobalNamespaceAttributeAreGlobalClasses()
238
256
}
239
257
240
258
259
+ [ TestCategory ( "Resolver" ) ]
241
260
[ TestMethod ]
242
261
public void ClassModulesWithASubtypeBelowInTheHiearchyThatIsAGlobalClassAndThatHasBeenAddedBeforeCallingIsGlobalClassTheFirstTimeIsAGlobalClass ( )
243
262
{
@@ -254,6 +273,7 @@ public void ClassModulesWithASubtypeBelowInTheHiearchyThatIsAGlobalClassAndThatH
254
273
}
255
274
256
275
276
+ [ TestCategory ( "Resolver" ) ]
257
277
[ TestMethod ]
258
278
public void ClassModulesDoNotBecomeAGlobalClassIfASubtypeBelowInTheHiearchyIsAddedThatIsAGlobalClassAfterIsAGlobalClassHasAlreadyBeenCalled ( )
259
279
{
@@ -271,6 +291,7 @@ public void ClassModulesDoNotBecomeAGlobalClassIfASubtypeBelowInTheHiearchyIsAdd
271
291
}
272
292
273
293
294
+ [ TestCategory ( "Resolver" ) ]
274
295
[ TestMethod ]
275
296
public void ClassModulesDoNotBecomeAGlobalClassIfBelowInTheHierarchyASubtypeIsAddedThatIsAGlobalClassAfterIsAGlobalClassHasAlreadyBeenCalled ( )
276
297
{
@@ -288,6 +309,7 @@ public void ClassModulesDoNotBecomeAGlobalClassIfBelowInTheHierarchyASubtypeIsAd
288
309
}
289
310
290
311
312
+ [ TestCategory ( "Resolver" ) ]
291
313
[ TestMethod ]
292
314
public void ByDefaultClassModulesDoNotHaveAPredeclaredID ( )
293
315
{
@@ -298,6 +320,7 @@ public void ByDefaultClassModulesDoNotHaveAPredeclaredID()
298
320
}
299
321
300
322
323
+ [ TestCategory ( "Resolver" ) ]
301
324
[ TestMethod ]
302
325
public void ClassModulesHaveAPredeclaredIDIfStatedInTheConstructorThatTheyHaveADefaultInstanceVariable ( )
303
326
{
@@ -308,6 +331,7 @@ public void ClassModulesHaveAPredeclaredIDIfStatedInTheConstructorThatTheyHaveAD
308
331
}
309
332
310
333
334
+ [ TestCategory ( "Resolver" ) ]
311
335
[ TestMethod ]
312
336
public void ClassModulesWithThePredeclaredIDAttributeHaveAPredeclaredID ( )
313
337
{
@@ -320,6 +344,7 @@ public void ClassModulesWithThePredeclaredIDAttributeHaveAPredeclaredID()
320
344
}
321
345
322
346
347
+ [ TestCategory ( "Resolver" ) ]
323
348
[ TestMethod ]
324
349
public void ByDefaultClassModulesDoNotHaveADefaultInstanceVariable ( )
325
350
{
@@ -330,6 +355,7 @@ public void ByDefaultClassModulesDoNotHaveADefaultInstanceVariable()
330
355
}
331
356
332
357
358
+ [ TestCategory ( "Resolver" ) ]
333
359
[ TestMethod ]
334
360
public void ClassModulesThatAreGlobalClassesHaveADefaultInstanceVariable ( )
335
361
{
@@ -342,6 +368,7 @@ public void ClassModulesThatAreGlobalClassesHaveADefaultInstanceVariable()
342
368
}
343
369
344
370
371
+ [ TestCategory ( "Resolver" ) ]
345
372
[ TestMethod ]
346
373
public void ClassModulesWithThePredeclaredIDAttributeHaveADefaultInstanceVariable ( )
347
374
{
@@ -354,6 +381,7 @@ public void ClassModulesWithThePredeclaredIDAttributeHaveADefaultInstanceVariabl
354
381
}
355
382
356
383
384
+ [ TestCategory ( "Resolver" ) ]
357
385
[ TestMethod ]
358
386
public void ClassModulesHaveADefaultInstanceVariableIfThisIsStated ( )
359
387
{
0 commit comments