Skip to content

Commit b4926c7

Browse files
committed
Removed tests that verified inspection type.
1 parent 8f066e1 commit b4926c7

File tree

61 files changed

+88
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+88
-506
lines changed

RubberduckTests/Inspections/ApplicationWorksheetFunctionInspectionTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,15 @@ End Sub
230230
Assert.IsFalse(inspectionResults.Any());
231231
}
232232
}
233+
234+
[Test]
235+
[Category("Inspections")]
236+
public void InspectionName()
237+
{
238+
const string inspectionName = "ApplicationWorksheetFunctionInspection";
239+
var inspection = new ApplicationWorksheetFunctionInspection(null);
240+
241+
Assert.AreEqual(inspectionName, inspection.Name);
242+
}
233243
}
234244
}

RubberduckTests/Inspections/AssignedByValParameterInspectionTests.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using NUnit.Framework;
33
using RubberduckTests.Mocks;
44
using Rubberduck.Inspections.Concrete;
5-
using Rubberduck.Parsing.Inspections.Resources;
65
using Rubberduck.VBEditor.SafeComWrappers;
76

87
namespace RubberduckTests.Inspections
@@ -170,14 +169,6 @@ End Sub
170169
}
171170
}
172171

173-
[Test]
174-
[Category("Inspections")]
175-
public void InspectionType()
176-
{
177-
var inspection = new AssignedByValParameterInspection(null);
178-
Assert.AreEqual(CodeInspectionType.CodeQualityIssues, inspection.InspectionType);
179-
}
180-
181172
[Test]
182173
[Category("Inspections")]
183174
public void InspectionName()

RubberduckTests/Inspections/BooleanAssignedInIfElseInspectionTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,5 +316,15 @@ If True Then
316316
Assert.AreEqual(1, results.Count());
317317
}
318318
}
319+
320+
[Test]
321+
[Category("Inspections")]
322+
public void InspectionName()
323+
{
324+
const string inspectionName = "BooleanAssignedInIfElseInspection";
325+
var inspection = new BooleanAssignedInIfElseInspection(null);
326+
327+
Assert.AreEqual(inspectionName, inspection.Name);
328+
}
319329
}
320330
}

RubberduckTests/Inspections/ConstantNotUsedInspectionTests.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Linq;
22
using NUnit.Framework;
33
using Rubberduck.Inspections.Concrete;
4-
using Rubberduck.Parsing.Inspections.Resources;
54
using RubberduckTests.Mocks;
65

76
namespace RubberduckTests.Inspections
@@ -187,14 +186,6 @@ public void ConstantNotUsed_Ignored_DoesNotReturnResult()
187186
}
188187
}
189188

190-
[Test]
191-
[Category("Inspections")]
192-
public void InspectionType()
193-
{
194-
var inspection = new ConstantNotUsedInspection(null);
195-
Assert.AreEqual(CodeInspectionType.CodeQualityIssues, inspection.InspectionType);
196-
}
197-
198189
[Test]
199190
[Category("Inspections")]
200191
public void InspectionName()

RubberduckTests/Inspections/DefTypeStatementInspectionTests.cs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using NUnit.Framework;
2-
using Rubberduck.Parsing.Inspections.Resources;
32
using Rubberduck.Inspections.Concrete;
43
using RubberduckTests.Mocks;
54
using System.Threading;
@@ -10,16 +9,6 @@ namespace RubberduckTests.Inspections
109
[TestFixture]
1110
public class DefTypeStatementInspectionTests
1211
{
13-
[Test]
14-
[Category("Inspections")]
15-
public void DefType_InspectionType()
16-
{
17-
var inspection = new DefTypeStatementInspection(null);
18-
const CodeInspectionType expectedInspection = CodeInspectionType.LanguageOpportunities;
19-
20-
Assert.AreEqual(expectedInspection, inspection.InspectionType);
21-
}
22-
2312
[Test]
2413
[TestCase("Bool")]
2514
[TestCase("Byte")]
@@ -144,5 +133,14 @@ Public Function Zoo()
144133
}
145134
}
146135

136+
[Test]
137+
[Category("Inspections")]
138+
public void InspectionName()
139+
{
140+
const string inspectionName = "DefTypeStatementInspection";
141+
var inspection = new DefTypeStatementInspection(null);
142+
143+
Assert.AreEqual(inspectionName, inspection.Name);
144+
}
147145
}
148146
}

RubberduckTests/Inspections/DefaultProjectNameInspectionTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
using System.Linq;
2-
using System.Threading;
32
using NUnit.Framework;
43
using Rubberduck.Inspections.Concrete;
5-
using Rubberduck.Parsing.Inspections.Resources;
6-
using Rubberduck.Parsing.VBA;
74
using Rubberduck.VBEditor.SafeComWrappers;
85
using RubberduckTests.Mocks;
96

@@ -50,14 +47,6 @@ public void DefaultProjectName_DoesNotReturnResult()
5047
}
5148
}
5249

53-
[Test]
54-
[Category("Inspections")]
55-
public void InspectionType()
56-
{
57-
var inspection = new DefaultProjectNameInspection(null);
58-
Assert.AreEqual(CodeInspectionType.MaintainabilityAndReadabilityIssues, inspection.InspectionType);
59-
}
60-
6150
[Test]
6251
[Category("Inspections")]
6352
public void InspectionName()

RubberduckTests/Inspections/EmptyCaseBlockInspectionTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,12 @@
33
using NUnit.Framework;
44
using RubberduckTests.Mocks;
55
using Rubberduck.Inspections.Concrete;
6-
using Rubberduck.Parsing.Inspections.Resources;
76

87
namespace RubberduckTests.Inspections
98
{
109
[TestFixture]
1110
public class EmptyCaseBlockInspectionTests
1211
{
13-
[Test]
14-
[Category("Inspections")]
15-
public void EmptyCaseBlock_InspectionType()
16-
{
17-
var inspection = new EmptyCaseBlockInspection(null);
18-
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
19-
20-
Assert.AreEqual(expectedInspection, inspection.InspectionType);
21-
}
22-
2312
[Test]
2413
[Category("Inspections")]
2514
public void EmptyCaseBlock_InspectionName()

RubberduckTests/Inspections/EmptyDoWhileBlockInspectionTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,12 @@
44
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
55
using RubberduckTests.Mocks;
66
using Rubberduck.Inspections.Concrete;
7-
using Rubberduck.Parsing.Inspections.Resources;
87

98
namespace RubberduckTests.Inspections
109
{
1110
[TestFixture]
1211
public class EmptyDoWhileBlockInspectionTests
1312
{
14-
[Test]
15-
[Category("Inspections")]
16-
public void EmptyDoWhileBlock_InspectionType()
17-
{
18-
var inspection = new EmptyDoWhileBlockInspection(null);
19-
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
20-
21-
Assert.AreEqual(expectedInspection, inspection.InspectionType);
22-
}
23-
2413
[Test]
2514
[Category("Inspections")]
2615
public void EmptyDoWhileBlock_InspectionName()

RubberduckTests/Inspections/EmptyElseBlockInspectionTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,12 @@
33
using NUnit.Framework;
44
using RubberduckTests.Mocks;
55
using Rubberduck.Inspections.Concrete;
6-
using Rubberduck.Parsing.Inspections.Resources;
76

87
namespace RubberduckTests.Inspections
98
{
109
[TestFixture]
1110
public class EmptyElseBlockInspectionTests
1211
{
13-
[Test]
14-
[Category("Inspections")]
15-
public void InspectionType()
16-
{
17-
var inspection = new EmptyElseBlockInspection(null);
18-
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
19-
20-
Assert.AreEqual(expectedInspection, inspection.InspectionType);
21-
}
22-
2312
[Test]
2413
[Category("Inspections")]
2514
public void InspectionName()

RubberduckTests/Inspections/EmptyForEachBlockInspectionTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,12 @@
44
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
55
using RubberduckTests.Mocks;
66
using Rubberduck.Inspections.Concrete;
7-
using Rubberduck.Parsing.Inspections.Resources;
87

98
namespace RubberduckTests.Inspections
109
{
1110
[TestFixture]
1211
public class EmptyForEachInspectionTests
1312
{
14-
[Test]
15-
[Category("Inspections")]
16-
public void EmptyForEachBlock_InspectionType()
17-
{
18-
var inspection = new EmptyForEachBlockInspection(null);
19-
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
20-
21-
Assert.AreEqual(expectedInspection, inspection.InspectionType);
22-
}
23-
2413
[Test]
2514
[Category("Inspections")]
2615
public void EmptyForEachBlock_InspectionName()

0 commit comments

Comments
 (0)