Skip to content

Commit fed718c

Browse files
committed
Ignore a bunch more tests
1 parent 2b5ba73 commit fed718c

8 files changed

+73
-108
lines changed

RubberduckTests/Inspections/EmptyCaseBlockInspectionTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace RubberduckTests.Inspections
99
{
10-
[TestClass]
10+
[TestClass, Ignore]
1111
public class EmptyCaseBlockInspectionTests
1212
{
13-
[TestMethod, Ignore]
13+
[TestMethod]
1414
[TestCategory("Inspections")]
1515
public void EmptyCaseBlock_InspectionType()
1616
{
@@ -20,7 +20,7 @@ public void EmptyCaseBlock_InspectionType()
2020
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2121
}
2222

23-
[TestMethod, Ignore]
23+
[TestMethod]
2424
[TestCategory("Inspections")]
2525
public void EmptyCaseBlock_InspectionName()
2626
{
@@ -30,7 +30,7 @@ public void EmptyCaseBlock_InspectionName()
3030
Assert.AreEqual(expectedName, inspection.Name);
3131
}
3232

33-
[TestMethod, Ignore]
33+
[TestMethod]
3434
[TestCategory("Inspections")]
3535
public void EmptyCaseBlock_DoesNotFiresOnImplementedCaseBlocks()
3636
{
@@ -50,7 +50,7 @@ End Select
5050
CheckActualEmptyBlockCountEqualsExpected(inputCode, 0);
5151
}
5252

53-
[TestMethod, Ignore]
53+
[TestMethod]
5454
[TestCategory("Inspections")]
5555
public void EmptyCaseBlock_FiresOnEmptyCaseBlocks()
5656
{
@@ -67,7 +67,7 @@ End Select
6767
CheckActualEmptyBlockCountEqualsExpected(inputCode, 3);
6868
}
6969

70-
[TestMethod, Ignore]
70+
[TestMethod]
7171
[TestCategory("Inspections")]
7272
public void EmptyCaseBlock_FiresOnCommentCaseBlocks()
7373
{

RubberduckTests/Inspections/EmptyElseBlockInspectionTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace RubberduckTests.Inspections
99
{
10-
[TestClass]
10+
[TestClass, Ignore]
1111
public class EmptyElseBlockInspectionTests
1212
{
13-
[TestMethod, Ignore]
13+
[TestMethod]
1414
[TestCategory("Inspections")]
1515
public void InspectionType()
1616
{
@@ -20,7 +20,7 @@ public void InspectionType()
2020
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2121
}
2222

23-
[TestMethod, Ignore]
23+
[TestMethod]
2424
[TestCategory("Inspections")]
2525
public void InspectionName()
2626
{
@@ -30,7 +30,7 @@ public void InspectionName()
3030
Assert.AreEqual(expectedName, inspection.Name);
3131
}
3232

33-
[TestMethod, Ignore]
33+
[TestMethod]
3434
[TestCategory("Inspections")]
3535
public void EmptyElseBlock_DoesntFireOnEmptyIfBlock()
3636
{
@@ -50,7 +50,7 @@ If True Then
5050
Assert.AreEqual(expectedCount, actualResults.Count());
5151
}
5252

53-
[TestMethod, Ignore]
53+
[TestMethod]
5454
[TestCategory("Inspections")]
5555
public void EmptyElseBlock_HasNoContent()
5656
{
@@ -72,7 +72,7 @@ End If
7272
Assert.AreEqual(expectedCount, actualResults.Count());
7373
}
7474

75-
[TestMethod, Ignore]
75+
[TestMethod]
7676
[TestCategory("Inspections")]
7777
public void EmptyElseBlock_HasQuoteComment()
7878
{
@@ -94,7 +94,7 @@ End If
9494
Assert.AreEqual(expectedCount, actualResults.Count());
9595
}
9696

97-
[TestMethod, Ignore]
97+
[TestMethod]
9898
[TestCategory("Inspections")]
9999
public void EmptyElseBlock_HasRemComment()
100100
{
@@ -117,7 +117,7 @@ End If
117117
Assert.AreEqual(expectedCount, actualResults.Count());
118118
}
119119

120-
[TestMethod, Ignore]
120+
[TestMethod]
121121
[TestCategory("Inspections")]
122122
public void EmptyElseBlock_HasVariableDeclaration()
123123
{
@@ -140,7 +140,7 @@ End If
140140
Assert.AreEqual(expectedCount, actualResults.Count());
141141
}
142142

143-
[TestMethod, Ignore]
143+
[TestMethod]
144144
[TestCategory("Inspections")]
145145
public void EmptyElseBlock_HasConstDeclaration()
146146
{
@@ -163,7 +163,7 @@ End If
163163
Assert.AreEqual(expectedCount, actualResults.Count());
164164
}
165165

166-
[TestMethod, Ignore]
166+
[TestMethod]
167167
[TestCategory("Inspections")]
168168
public void EmptyElseBlock_HasWhitespace()
169169
{
@@ -187,7 +187,7 @@ End If
187187
Assert.AreEqual(expectedCount, actualResults.Count());
188188
}
189189

190-
[TestMethod, Ignore]
190+
[TestMethod]
191191
[TestCategory("Inspections")]
192192
public void EmptyElseBlock_HasDeclarationStatement()
193193
{
@@ -210,7 +210,7 @@ End If
210210
Assert.AreEqual(expectedCount, actualResults.Count());
211211
}
212212

213-
[TestMethod, Ignore]
213+
[TestMethod]
214214
[TestCategory("Inspections")]
215215
public void EmptyElseBlock_HasExecutableStatement()
216216
{

RubberduckTests/Inspections/EmptyForEachBlockInspectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace RubberduckTests.Inspections
1010
{
11-
[TestClass]
11+
[TestClass, Ignore]
1212
public class EmptyForEachInspectionTests
1313
{
1414
[TestMethod]

RubberduckTests/Inspections/EmptyForLoopBlockInspectionTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace RubberduckTests.Inspections
99
{
10-
[TestClass]
10+
[TestClass, Ignore]
1111
public class EmptyForLoopBlockInspectionTests
1212
{
13-
[TestMethod, Ignore]
13+
[TestMethod]
1414
[TestCategory("Inspections")]
1515
public void EmptyForLoopBlock_InspectionType()
1616
{
@@ -20,7 +20,7 @@ public void EmptyForLoopBlock_InspectionType()
2020
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2121
}
2222

23-
[TestMethod, Ignore]
23+
[TestMethod]
2424
[TestCategory("Inspections")]
2525
public void EmptyForLoopBlock_InspectionName()
2626
{
@@ -30,7 +30,7 @@ public void EmptyForLoopBlock_InspectionName()
3030
Assert.AreEqual(expectedName, inspection.Name);
3131
}
3232

33-
[TestMethod, Ignore]
33+
[TestMethod]
3434
[TestCategory("Inspections")]
3535
public void EmptyForLoopBlock_DoesNotFiresOnImplementedLoopBlocks()
3636
{
@@ -44,7 +44,7 @@ next idx
4444
CheckActualEmptyBlockCountEqualsExpected(inputCode, 0);
4545
}
4646

47-
[TestMethod, Ignore]
47+
[TestMethod]
4848
[TestCategory("Inspections")]
4949
public void EmptyForLoopBlock_FiresOnEmptyLoopBlocks()
5050
{

RubberduckTests/Inspections/EmptyIfBlockInspectionTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace RubberduckTests.Inspections
99
{
10-
[TestClass]
10+
[TestClass, Ignore]
1111
public class EmptyIfBlockInspectionTests
1212
{
13-
[TestMethod, Ignore]
13+
[TestMethod]
1414
[TestCategory("Inspections")]
1515
public void EmptyIfBlock_FiresOnEmptyIfBlock()
1616
{
@@ -30,7 +30,7 @@ End If
3030
Assert.AreEqual(1, inspectionResults.Count());
3131
}
3232

33-
[TestMethod, Ignore]
33+
[TestMethod]
3434
[TestCategory("Inspections")]
3535
public void EmptyIfBlock_FiresOnEmptyElseIfBlock()
3636
{
@@ -51,7 +51,7 @@ End If
5151
Assert.AreEqual(2, inspectionResults.Count());
5252
}
5353

54-
[TestMethod, Ignore]
54+
[TestMethod]
5555
[TestCategory("Inspections")]
5656
public void EmptyIfBlock_FiresOnEmptyIfBlock_ElseBlock()
5757
{
@@ -72,7 +72,7 @@ End If
7272
Assert.AreEqual(1, inspectionResults.Count());
7373
}
7474

75-
[TestMethod, Ignore]
75+
[TestMethod]
7676
[TestCategory("Inspections")]
7777
public void EmptyIfBlock_FiresOnEmptySingleLineIfStmt()
7878
{
@@ -94,7 +94,7 @@ Sub Bar()
9494
Assert.AreEqual(1, inspectionResults.Count());
9595
}
9696

97-
[TestMethod, Ignore]
97+
[TestMethod]
9898
[TestCategory("Inspections")]
9999
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasNonEmptyElseBlock()
100100
{
@@ -117,7 +117,7 @@ End If
117117
Assert.AreEqual(1, inspectionResults.Count());
118118
}
119119

120-
[TestMethod, Ignore]
120+
[TestMethod]
121121
[TestCategory("Inspections")]
122122
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasQuoteComment()
123123
{
@@ -138,7 +138,7 @@ End If
138138
Assert.AreEqual(1, inspectionResults.Count());
139139
}
140140

141-
[TestMethod, Ignore]
141+
[TestMethod]
142142
[TestCategory("Inspections")]
143143
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasRemComment()
144144
{
@@ -159,7 +159,7 @@ End If
159159
Assert.AreEqual(1, inspectionResults.Count());
160160
}
161161

162-
[TestMethod, Ignore]
162+
[TestMethod]
163163
[TestCategory("Inspections")]
164164
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasVariableDeclaration()
165165
{
@@ -180,7 +180,7 @@ End If
180180
Assert.AreEqual(1, inspectionResults.Count());
181181
}
182182

183-
[TestMethod, Ignore]
183+
[TestMethod]
184184
[TestCategory("Inspections")]
185185
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasConstDeclaration()
186186
{
@@ -201,7 +201,7 @@ End If
201201
Assert.AreEqual(1, inspectionResults.Count());
202202
}
203203

204-
[TestMethod, Ignore]
204+
[TestMethod]
205205
[TestCategory("Inspections")]
206206
public void EmptyIfBlock_FiresOnEmptyIfBlock_HasWhitespace()
207207
{
@@ -223,7 +223,7 @@ End If
223223
Assert.AreEqual(1, inspectionResults.Count());
224224
}
225225

226-
[TestMethod, Ignore]
226+
[TestMethod]
227227
[TestCategory("Inspections")]
228228
public void EmptyIfBlock_IfBlockHasExecutableStatement()
229229
{
@@ -245,7 +245,7 @@ End If
245245
Assert.IsFalse(inspectionResults.Any());
246246
}
247247

248-
[TestMethod, Ignore]
248+
[TestMethod]
249249
[TestCategory("Inspections")]
250250
public void EmptyIfBlock_SingleLineIfBlockHasExecutableStatement()
251251
{
@@ -267,7 +267,7 @@ Sub Bar()
267267
Assert.IsFalse(inspectionResults.Any());
268268
}
269269

270-
[TestMethod, Ignore]
270+
[TestMethod]
271271
[TestCategory("Inspections")]
272272
public void EmptyIfBlock_IfAndElseIfBlockHaveExecutableStatement()
273273
{
@@ -300,7 +300,7 @@ public void InspectionType()
300300
Assert.AreEqual(CodeInspectionType.CodeQualityIssues, inspection.InspectionType);
301301
}
302302

303-
[TestMethod, Ignore]
303+
[TestMethod]
304304
[TestCategory("Inspections")]
305305
public void InspectionName()
306306
{

RubberduckTests/Inspections/EmptyWhileWendBlockInspectionTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
using System.Linq;
22
using System.Threading;
33
using Microsoft.VisualStudio.TestTools.UnitTesting;
4-
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
54
using RubberduckTests.Mocks;
65
using Rubberduck.Inspections.Concrete;
76
using Rubberduck.Parsing.Inspections.Resources;
87

98
namespace RubberduckTests.Inspections
109
{
11-
[TestClass]
10+
[TestClass, Ignore]
1211
public class EmptyWhileWendBlockInspectionTests
1312
{
1413
[TestMethod]
@@ -69,8 +68,7 @@ While LTotal < 5
6968

7069
private void CheckActualEmptyBlockCountEqualsExpected(string inputCode, int expectedCount)
7170
{
72-
IVBComponent component;
73-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
71+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
7472
var state = MockParser.CreateAndParse(vbe.Object);
7573

7674
var inspection = new EmptyWhileWendBlockInspection(state);

RubberduckTests/QuickFixes/RemoveEmptyElseBlockQuickFixTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
using System.Linq;
22
using System.Threading;
33
using Microsoft.VisualStudio.TestTools.UnitTesting;
4-
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
54
using RubberduckTests.Mocks;
65
using Rubberduck.Inspections.Concrete;
76
using Rubberduck.Inspections.QuickFixes;
87
using RubberduckTests.Inspections;
98

109
namespace RubberduckTests.QuickFixes
1110
{
12-
[TestClass]
11+
[TestClass, Ignore]
1312
public class RemoveEmptyElseBlockQuickFixTests
1413
{
1514
[TestMethod]
@@ -29,8 +28,7 @@ If True Then
2928
End If
3029
End Sub";
3130

32-
IVBComponent component;
33-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
31+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out var component);
3432
var state = MockParser.CreateAndParse(vbe.Object);
3533

3634
var inspection = new EmptyElseBlockInspection(state);

0 commit comments

Comments
 (0)