1
1
using System . Linq ;
2
2
using System . Threading ;
3
3
using Microsoft . VisualStudio . TestTools . UnitTesting ;
4
- using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
5
4
using RubberduckTests . Mocks ;
6
5
using Rubberduck . Inspections . Concrete ;
7
6
using Rubberduck . Parsing . Inspections . Resources ;
@@ -11,7 +10,7 @@ namespace RubberduckTests.Inspections
11
10
[ TestClass ]
12
11
public class EmptyElseBlockInspectionTests
13
12
{
14
- [ TestMethod ]
13
+ [ TestMethod , Ignore ]
15
14
[ TestCategory ( "Inspections" ) ]
16
15
public void InspectionType ( )
17
16
{
@@ -21,7 +20,7 @@ public void InspectionType()
21
20
Assert . AreEqual ( expectedInspection , inspection . InspectionType ) ;
22
21
}
23
22
24
- [ TestMethod ]
23
+ [ TestMethod , Ignore ]
25
24
[ TestCategory ( "Inspections" ) ]
26
25
public void InspectionName ( )
27
26
{
@@ -31,7 +30,7 @@ public void InspectionName()
31
30
Assert . AreEqual ( expectedName , inspection . Name ) ;
32
31
}
33
32
34
- [ TestMethod ]
33
+ [ TestMethod , Ignore ]
35
34
[ TestCategory ( "Inspections" ) ]
36
35
public void EmptyElseBlock_DoesntFireOnEmptyIfBlock ( )
37
36
{
@@ -40,8 +39,7 @@ public void EmptyElseBlock_DoesntFireOnEmptyIfBlock()
40
39
If True Then
41
40
EndIf
42
41
End Sub" ;
43
- IVBComponent component ;
44
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out component ) ;
42
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out _ ) ;
45
43
var state = MockParser . CreateAndParse ( vbe . Object ) ;
46
44
47
45
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -52,7 +50,7 @@ If True Then
52
50
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
53
51
}
54
52
55
- [ TestMethod ]
53
+ [ TestMethod , Ignore ]
56
54
[ TestCategory ( "Inspections" ) ]
57
55
public void EmptyElseBlock_HasNoContent ( )
58
56
{
@@ -63,8 +61,7 @@ If True Then
63
61
End If
64
62
End Sub" ;
65
63
66
- IVBComponent component ;
67
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out component ) ;
64
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out _ ) ;
68
65
var state = MockParser . CreateAndParse ( vbe . Object ) ;
69
66
70
67
var inspection = new EmptyElseBlockInspection ( state ) ;
75
72
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
76
73
}
77
74
78
- [ TestMethod ]
75
+ [ TestMethod , Ignore ]
79
76
[ TestCategory ( "Inspections" ) ]
80
77
public void EmptyElseBlock_HasQuoteComment ( )
81
78
{
@@ -86,8 +83,7 @@ If True Then
86
83
'Some Comment
87
84
End If
88
85
End Sub" ;
89
- IVBComponent component ;
90
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
86
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
91
87
var state = MockParser . CreateAndParse ( vbe . Object ) ;
92
88
93
89
var inspection = new EmptyElseBlockInspection ( state ) ;
98
94
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
99
95
}
100
96
101
- [ TestMethod ]
97
+ [ TestMethod , Ignore ]
102
98
[ TestCategory ( "Inspections" ) ]
103
99
public void EmptyElseBlock_HasRemComment ( )
104
100
{
@@ -110,8 +106,7 @@ Rem Some Comment
110
106
End If
111
107
End Sub" ;
112
108
113
- IVBComponent component ;
114
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
109
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
115
110
var state = MockParser . CreateAndParse ( vbe . Object ) ;
116
111
117
112
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -122,7 +117,7 @@ End If
122
117
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
123
118
}
124
119
125
- [ TestMethod ]
120
+ [ TestMethod , Ignore ]
126
121
[ TestCategory ( "Inspections" ) ]
127
122
public void EmptyElseBlock_HasVariableDeclaration ( )
128
123
{
@@ -134,8 +129,7 @@ Dim d
134
129
End If
135
130
End Sub" ;
136
131
137
- IVBComponent component ;
138
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
132
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
139
133
var state = MockParser . CreateAndParse ( vbe . Object ) ;
140
134
141
135
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -146,7 +140,7 @@ End If
146
140
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
147
141
}
148
142
149
- [ TestMethod ]
143
+ [ TestMethod , Ignore ]
150
144
[ TestCategory ( "Inspections" ) ]
151
145
public void EmptyElseBlock_HasConstDeclaration ( )
152
146
{
@@ -158,8 +152,7 @@ If True Then
158
152
End If
159
153
End Sub" ;
160
154
161
- IVBComponent component ;
162
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
155
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
163
156
var state = MockParser . CreateAndParse ( vbe . Object ) ;
164
157
165
158
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -170,7 +163,7 @@ End If
170
163
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
171
164
}
172
165
173
- [ TestMethod ]
166
+ [ TestMethod , Ignore ]
174
167
[ TestCategory ( "Inspections" ) ]
175
168
public void EmptyElseBlock_HasWhitespace ( )
176
169
{
@@ -183,8 +176,7 @@ If True Then
183
176
End If
184
177
End Sub" ;
185
178
186
- IVBComponent component ;
187
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out component ) ;
179
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputcode , out _ ) ;
188
180
var state = MockParser . CreateAndParse ( vbe . Object ) ;
189
181
190
182
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -195,7 +187,7 @@ End If
195
187
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
196
188
}
197
189
198
- [ TestMethod ]
190
+ [ TestMethod , Ignore ]
199
191
[ TestCategory ( "Inspections" ) ]
200
192
public void EmptyElseBlock_HasDeclarationStatement ( )
201
193
{
@@ -207,8 +199,7 @@ Dim d
207
199
End If
208
200
End Sub" ;
209
201
210
- IVBComponent component ;
211
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
202
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
212
203
var state = MockParser . CreateAndParse ( vbe . Object ) ;
213
204
214
205
var inspection = new EmptyElseBlockInspection ( state ) ;
@@ -219,7 +210,7 @@ End If
219
210
Assert . AreEqual ( expectedCount , actualResults . Count ( ) ) ;
220
211
}
221
212
222
- [ TestMethod ]
213
+ [ TestMethod , Ignore ]
223
214
[ TestCategory ( "Inspections" ) ]
224
215
public void EmptyElseBlock_HasExecutableStatement ( )
225
216
{
@@ -232,8 +223,7 @@ Dim d
232
223
End If
233
224
End Sub" ;
234
225
235
- IVBComponent component ;
236
- var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out component ) ;
226
+ var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out _ ) ;
237
227
var state = MockParser . CreateAndParse ( vbe . Object ) ;
238
228
239
229
var inspection = new EmptyElseBlockInspection ( state ) ;
0 commit comments