Skip to content

Commit 2b5ba73

Browse files
committed
Ignore a bunch of tests
1 parent c31afd3 commit 2b5ba73

File tree

5 files changed

+59
-86
lines changed

5 files changed

+59
-86
lines changed

RubberduckTests/Inspections/EmptyCaseBlockInspectionTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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;
@@ -11,7 +10,7 @@ namespace RubberduckTests.Inspections
1110
[TestClass]
1211
public class EmptyCaseBlockInspectionTests
1312
{
14-
[TestMethod]
13+
[TestMethod, Ignore]
1514
[TestCategory("Inspections")]
1615
public void EmptyCaseBlock_InspectionType()
1716
{
@@ -21,7 +20,7 @@ public void EmptyCaseBlock_InspectionType()
2120
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2221
}
2322

24-
[TestMethod]
23+
[TestMethod, Ignore]
2524
[TestCategory("Inspections")]
2625
public void EmptyCaseBlock_InspectionName()
2726
{
@@ -31,7 +30,7 @@ public void EmptyCaseBlock_InspectionName()
3130
Assert.AreEqual(expectedName, inspection.Name);
3231
}
3332

34-
[TestMethod]
33+
[TestMethod, Ignore]
3534
[TestCategory("Inspections")]
3635
public void EmptyCaseBlock_DoesNotFiresOnImplementedCaseBlocks()
3736
{
@@ -51,7 +50,7 @@ End Select
5150
CheckActualEmptyBlockCountEqualsExpected(inputCode, 0);
5251
}
5352

54-
[TestMethod]
53+
[TestMethod, Ignore]
5554
[TestCategory("Inspections")]
5655
public void EmptyCaseBlock_FiresOnEmptyCaseBlocks()
5756
{
@@ -68,7 +67,7 @@ End Select
6867
CheckActualEmptyBlockCountEqualsExpected(inputCode, 3);
6968
}
7069

71-
[TestMethod]
70+
[TestMethod, Ignore]
7271
[TestCategory("Inspections")]
7372
public void EmptyCaseBlock_FiresOnCommentCaseBlocks()
7473
{

RubberduckTests/Inspections/EmptyElseBlockInspectionTests.cs

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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;
@@ -11,7 +10,7 @@ namespace RubberduckTests.Inspections
1110
[TestClass]
1211
public class EmptyElseBlockInspectionTests
1312
{
14-
[TestMethod]
13+
[TestMethod, Ignore]
1514
[TestCategory("Inspections")]
1615
public void InspectionType()
1716
{
@@ -21,7 +20,7 @@ public void InspectionType()
2120
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2221
}
2322

24-
[TestMethod]
23+
[TestMethod, Ignore]
2524
[TestCategory("Inspections")]
2625
public void InspectionName()
2726
{
@@ -31,7 +30,7 @@ public void InspectionName()
3130
Assert.AreEqual(expectedName, inspection.Name);
3231
}
3332

34-
[TestMethod]
33+
[TestMethod, Ignore]
3534
[TestCategory("Inspections")]
3635
public void EmptyElseBlock_DoesntFireOnEmptyIfBlock()
3736
{
@@ -40,8 +39,7 @@ public void EmptyElseBlock_DoesntFireOnEmptyIfBlock()
4039
If True Then
4140
EndIf
4241
End Sub";
43-
IVBComponent component;
44-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out component);
42+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out _);
4543
var state = MockParser.CreateAndParse(vbe.Object);
4644

4745
var inspection = new EmptyElseBlockInspection(state);
@@ -52,7 +50,7 @@ If True Then
5250
Assert.AreEqual(expectedCount, actualResults.Count());
5351
}
5452

55-
[TestMethod]
53+
[TestMethod, Ignore]
5654
[TestCategory("Inspections")]
5755
public void EmptyElseBlock_HasNoContent()
5856
{
@@ -63,8 +61,7 @@ If True Then
6361
End If
6462
End Sub";
6563

66-
IVBComponent component;
67-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out component);
64+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out _);
6865
var state = MockParser.CreateAndParse(vbe.Object);
6966

7067
var inspection = new EmptyElseBlockInspection(state);
@@ -75,7 +72,7 @@ End If
7572
Assert.AreEqual(expectedCount, actualResults.Count());
7673
}
7774

78-
[TestMethod]
75+
[TestMethod, Ignore]
7976
[TestCategory("Inspections")]
8077
public void EmptyElseBlock_HasQuoteComment()
8178
{
@@ -86,8 +83,7 @@ If True Then
8683
'Some Comment
8784
End If
8885
End Sub";
89-
IVBComponent component;
90-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
86+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
9187
var state = MockParser.CreateAndParse(vbe.Object);
9288

9389
var inspection = new EmptyElseBlockInspection(state);
@@ -98,7 +94,7 @@ End If
9894
Assert.AreEqual(expectedCount, actualResults.Count());
9995
}
10096

101-
[TestMethod]
97+
[TestMethod, Ignore]
10298
[TestCategory("Inspections")]
10399
public void EmptyElseBlock_HasRemComment()
104100
{
@@ -110,8 +106,7 @@ Rem Some Comment
110106
End If
111107
End Sub";
112108

113-
IVBComponent component;
114-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
109+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
115110
var state = MockParser.CreateAndParse(vbe.Object);
116111

117112
var inspection = new EmptyElseBlockInspection(state);
@@ -122,7 +117,7 @@ End If
122117
Assert.AreEqual(expectedCount, actualResults.Count());
123118
}
124119

125-
[TestMethod]
120+
[TestMethod, Ignore]
126121
[TestCategory("Inspections")]
127122
public void EmptyElseBlock_HasVariableDeclaration()
128123
{
@@ -134,8 +129,7 @@ Dim d
134129
End If
135130
End Sub";
136131

137-
IVBComponent component;
138-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
132+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
139133
var state = MockParser.CreateAndParse(vbe.Object);
140134

141135
var inspection = new EmptyElseBlockInspection(state);
@@ -146,7 +140,7 @@ End If
146140
Assert.AreEqual(expectedCount, actualResults.Count());
147141
}
148142

149-
[TestMethod]
143+
[TestMethod, Ignore]
150144
[TestCategory("Inspections")]
151145
public void EmptyElseBlock_HasConstDeclaration()
152146
{
@@ -158,8 +152,7 @@ If True Then
158152
End If
159153
End Sub";
160154

161-
IVBComponent component;
162-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
155+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
163156
var state = MockParser.CreateAndParse(vbe.Object);
164157

165158
var inspection = new EmptyElseBlockInspection(state);
@@ -170,7 +163,7 @@ End If
170163
Assert.AreEqual(expectedCount, actualResults.Count());
171164
}
172165

173-
[TestMethod]
166+
[TestMethod, Ignore]
174167
[TestCategory("Inspections")]
175168
public void EmptyElseBlock_HasWhitespace()
176169
{
@@ -183,8 +176,7 @@ If True Then
183176
End If
184177
End Sub";
185178

186-
IVBComponent component;
187-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out component);
179+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputcode, out _);
188180
var state = MockParser.CreateAndParse(vbe.Object);
189181

190182
var inspection = new EmptyElseBlockInspection(state);
@@ -195,7 +187,7 @@ End If
195187
Assert.AreEqual(expectedCount, actualResults.Count());
196188
}
197189

198-
[TestMethod]
190+
[TestMethod, Ignore]
199191
[TestCategory("Inspections")]
200192
public void EmptyElseBlock_HasDeclarationStatement()
201193
{
@@ -207,8 +199,7 @@ Dim d
207199
End If
208200
End Sub";
209201

210-
IVBComponent component;
211-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
202+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
212203
var state = MockParser.CreateAndParse(vbe.Object);
213204

214205
var inspection = new EmptyElseBlockInspection(state);
@@ -219,7 +210,7 @@ End If
219210
Assert.AreEqual(expectedCount, actualResults.Count());
220211
}
221212

222-
[TestMethod]
213+
[TestMethod, Ignore]
223214
[TestCategory("Inspections")]
224215
public void EmptyElseBlock_HasExecutableStatement()
225216
{
@@ -232,8 +223,7 @@ Dim d
232223
End If
233224
End Sub";
234225

235-
IVBComponent component;
236-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
226+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
237227
var state = MockParser.CreateAndParse(vbe.Object);
238228

239229
var inspection = new EmptyElseBlockInspection(state);

RubberduckTests/Inspections/EmptyForEachBlockInspectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ next var
4444
CheckActualEmptyBlockCountEqualsExpected(inputCode, 0);
4545
}
4646

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

RubberduckTests/Inspections/EmptyForLoopBlockInspectionTests.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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;
@@ -11,7 +10,7 @@ namespace RubberduckTests.Inspections
1110
[TestClass]
1211
public class EmptyForLoopBlockInspectionTests
1312
{
14-
[TestMethod]
13+
[TestMethod, Ignore]
1514
[TestCategory("Inspections")]
1615
public void EmptyForLoopBlock_InspectionType()
1716
{
@@ -21,7 +20,7 @@ public void EmptyForLoopBlock_InspectionType()
2120
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2221
}
2322

24-
[TestMethod]
23+
[TestMethod, Ignore]
2524
[TestCategory("Inspections")]
2625
public void EmptyForLoopBlock_InspectionName()
2726
{
@@ -31,7 +30,7 @@ public void EmptyForLoopBlock_InspectionName()
3130
Assert.AreEqual(expectedName, inspection.Name);
3231
}
3332

34-
[TestMethod]
33+
[TestMethod, Ignore]
3534
[TestCategory("Inspections")]
3635
public void EmptyForLoopBlock_DoesNotFiresOnImplementedLoopBlocks()
3736
{
@@ -45,7 +44,7 @@ next idx
4544
CheckActualEmptyBlockCountEqualsExpected(inputCode, 0);
4645
}
4746

48-
[TestMethod]
47+
[TestMethod, Ignore]
4948
[TestCategory("Inspections")]
5049
public void EmptyForLoopBlock_FiresOnEmptyLoopBlocks()
5150
{
@@ -60,8 +59,7 @@ next idx
6059

6160
private void CheckActualEmptyBlockCountEqualsExpected(string inputCode, int expectedCount)
6261
{
63-
IVBComponent component;
64-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out component);
62+
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
6563
var state = MockParser.CreateAndParse(vbe.Object);
6664

6765
var inspection = new EmptyForLoopBlockInspection(state);

0 commit comments

Comments
 (0)