Skip to content

Commit 4158064

Browse files
committed
Annotate ClassModuleDeclarationTests
1 parent ebe21e6 commit 4158064

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

RubberduckTests/Symbols/ClassModuleDeclarationTests.cs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace RubberduckTests.Symbols
1010
[TestClass]
1111
public class ClassModuleDeclarationTests
1212
{
13+
[TestCategory("Resolver")]
1314
[TestMethod]
1415
public void ClassModulesHaveDeclarationTypeClassModule()
1516
{
@@ -37,6 +38,7 @@ private static ClassModuleDeclaration GetTestClassModule(Declaration projectDecl
3738
}
3839

3940

41+
[TestCategory("Resolver")]
4042
[TestMethod]
4143
public void ByDefaultSubtypesIsEmpty()
4244
{
@@ -47,6 +49,7 @@ public void ByDefaultSubtypesIsEmpty()
4749
}
4850

4951

52+
[TestCategory("Resolver")]
5053
[TestMethod]
5154
public void AddSubtypeAddsClassToSubtypes()
5255
{
@@ -59,6 +62,7 @@ public void AddSubtypeAddsClassToSubtypes()
5962
}
6063

6164

65+
[TestCategory("Resolver")]
6266
[TestMethod]
6367
public void ByDefaultSupertypesIsEmpty()
6468
{
@@ -69,6 +73,7 @@ public void ByDefaultSupertypesIsEmpty()
6973
}
7074

7175

76+
[TestCategory("Resolver")]
7277
[TestMethod]
7378
public void AddSupertypeForDeclarationsAddsClassToSupertypes()
7479
{
@@ -81,6 +86,7 @@ public void AddSupertypeForDeclarationsAddsClassToSupertypes()
8186
}
8287

8388

89+
[TestCategory("Resolver")]
8490
[TestMethod]
8591
public void ByDefaultSupertypeNamesIsEmpty()
8692
{
@@ -91,6 +97,7 @@ public void ByDefaultSupertypeNamesIsEmpty()
9197
}
9298

9399

100+
[TestCategory("Resolver")]
94101
[TestMethod]
95102
public void AddSupertypeForStringsAddsTypenameToSupertypeNames()
96103
{
@@ -103,6 +110,7 @@ public void AddSupertypeForStringsAddsTypenameToSupertypeNames()
103110
}
104111

105112

113+
[TestCategory("Resolver")]
106114
[TestMethod]
107115
public void AddSupertypeForDeclarationsHasNoEffectOnSupertypeNames()
108116
{
@@ -115,6 +123,7 @@ public void AddSupertypeForDeclarationsHasNoEffectOnSupertypeNames()
115123
}
116124

117125

126+
[TestCategory("Resolver")]
118127
[TestMethod]
119128
public void AddSupertypeForStringsHasNoEffectsOnSupertypes()
120129
{
@@ -127,6 +136,7 @@ public void AddSupertypeForStringsHasNoEffectsOnSupertypes()
127136
}
128137

129138

139+
[TestCategory("Resolver")]
130140
[TestMethod]
131141
public void GetSupertypesReturnsAnEmptyEnumerableForProceduralModules()
132142
{
@@ -143,6 +153,7 @@ private static ProceduralModuleDeclaration GetTestProceduralModule(Declaration p
143153
}
144154

145155

156+
[TestCategory("Resolver")]
146157
[TestMethod]
147158
public void GetSupertypesReturnsTheSupertypesOfAClassModule()
148159
{
@@ -153,8 +164,9 @@ public void GetSupertypesReturnsTheSupertypesOfAClassModule()
153164

154165
Assert.AreEqual(supertype, ClassModuleDeclaration.GetSupertypes(classModule).First());
155166
}
156-
157167

168+
169+
[TestCategory("Resolver")]
158170
[TestMethod]
159171
public void GetSupertypesReturnsAnEmptyEnumerableForDeclarationsWithDeclarationTypeClassModuleWhichAreNoClassModuleDeclarations()
160172
{
@@ -172,6 +184,7 @@ private static Declaration GetTestFakeClassModule(Declaration parentDeclatation,
172184

173185

174186

187+
[TestCategory("Resolver")]
175188
[TestMethod]
176189
public void ByDefaultDefaultMemberIsNull()
177190
{
@@ -182,6 +195,7 @@ public void ByDefaultDefaultMemberIsNull()
182195
}
183196

184197

198+
[TestCategory("Resolver")]
185199
[TestMethod]
186200
public void ByDefaultClassModulesNotBuiltInAreNotExposed()
187201
{
@@ -194,6 +208,7 @@ public void ByDefaultClassModulesNotBuiltInAreNotExposed()
194208

195209
// TODO: Find out if there's info about "being exposed" in type libraries.
196210
// We take the conservative approach of treating all type library modules as exposed.
211+
[TestCategory("Resolver")]
197212
[TestMethod]
198213
public void BuiltInClassesAreExposed()
199214
{
@@ -204,6 +219,7 @@ public void BuiltInClassesAreExposed()
204219
}
205220

206221

222+
[TestCategory("Resolver")]
207223
[TestMethod]
208224
public void ClassModulesWithTheExposedAttributeAreExposed()
209225
{
@@ -216,6 +232,7 @@ public void ClassModulesWithTheExposedAttributeAreExposed()
216232
}
217233

218234

235+
[TestCategory("Resolver")]
219236
[TestMethod]
220237
public void ByDefaultClassModulesAreNotGlobalClasses()
221238
{
@@ -226,6 +243,7 @@ public void ByDefaultClassModulesAreNotGlobalClasses()
226243
}
227244

228245

246+
[TestCategory("Resolver")]
229247
[TestMethod]
230248
public void ClassModulesWithTheGlobalNamespaceAttributeAreGlobalClasses()
231249
{
@@ -238,6 +256,7 @@ public void ClassModulesWithTheGlobalNamespaceAttributeAreGlobalClasses()
238256
}
239257

240258

259+
[TestCategory("Resolver")]
241260
[TestMethod]
242261
public void ClassModulesWithASubtypeBelowInTheHiearchyThatIsAGlobalClassAndThatHasBeenAddedBeforeCallingIsGlobalClassTheFirstTimeIsAGlobalClass()
243262
{
@@ -254,6 +273,7 @@ public void ClassModulesWithASubtypeBelowInTheHiearchyThatIsAGlobalClassAndThatH
254273
}
255274

256275

276+
[TestCategory("Resolver")]
257277
[TestMethod]
258278
public void ClassModulesDoNotBecomeAGlobalClassIfASubtypeBelowInTheHiearchyIsAddedThatIsAGlobalClassAfterIsAGlobalClassHasAlreadyBeenCalled()
259279
{
@@ -271,6 +291,7 @@ public void ClassModulesDoNotBecomeAGlobalClassIfASubtypeBelowInTheHiearchyIsAdd
271291
}
272292

273293

294+
[TestCategory("Resolver")]
274295
[TestMethod]
275296
public void ClassModulesDoNotBecomeAGlobalClassIfBelowInTheHierarchyASubtypeIsAddedThatIsAGlobalClassAfterIsAGlobalClassHasAlreadyBeenCalled()
276297
{
@@ -288,6 +309,7 @@ public void ClassModulesDoNotBecomeAGlobalClassIfBelowInTheHierarchyASubtypeIsAd
288309
}
289310

290311

312+
[TestCategory("Resolver")]
291313
[TestMethod]
292314
public void ByDefaultClassModulesDoNotHaveAPredeclaredID()
293315
{
@@ -298,6 +320,7 @@ public void ByDefaultClassModulesDoNotHaveAPredeclaredID()
298320
}
299321

300322

323+
[TestCategory("Resolver")]
301324
[TestMethod]
302325
public void ClassModulesHaveAPredeclaredIDIfStatedInTheConstructorThatTheyHaveADefaultInstanceVariable()
303326
{
@@ -308,6 +331,7 @@ public void ClassModulesHaveAPredeclaredIDIfStatedInTheConstructorThatTheyHaveAD
308331
}
309332

310333

334+
[TestCategory("Resolver")]
311335
[TestMethod]
312336
public void ClassModulesWithThePredeclaredIDAttributeHaveAPredeclaredID()
313337
{
@@ -320,6 +344,7 @@ public void ClassModulesWithThePredeclaredIDAttributeHaveAPredeclaredID()
320344
}
321345

322346

347+
[TestCategory("Resolver")]
323348
[TestMethod]
324349
public void ByDefaultClassModulesDoNotHaveADefaultInstanceVariable()
325350
{
@@ -330,6 +355,7 @@ public void ByDefaultClassModulesDoNotHaveADefaultInstanceVariable()
330355
}
331356

332357

358+
[TestCategory("Resolver")]
333359
[TestMethod]
334360
public void ClassModulesThatAreGlobalClassesHaveADefaultInstanceVariable()
335361
{
@@ -342,6 +368,7 @@ public void ClassModulesThatAreGlobalClassesHaveADefaultInstanceVariable()
342368
}
343369

344370

371+
[TestCategory("Resolver")]
345372
[TestMethod]
346373
public void ClassModulesWithThePredeclaredIDAttributeHaveADefaultInstanceVariable()
347374
{
@@ -354,6 +381,7 @@ public void ClassModulesWithThePredeclaredIDAttributeHaveADefaultInstanceVariabl
354381
}
355382

356383

384+
[TestCategory("Resolver")]
357385
[TestMethod]
358386
public void ClassModulesHaveADefaultInstanceVariableIfThisIsStated()
359387
{

0 commit comments

Comments
 (0)