Skip to content

Commit 2c054fc

Browse files
committed
Removed unit test
Test was added while looking for issue failure scenario(s). But, the unit test never failed with existing code...so no need to add it.
1 parent 7acfd31 commit 2c054fc

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

RubberduckTests/Inspections/ProcedureShouldBeFunctionInspectionTests.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,6 @@ namespace RubberduckTests.Inspections
1010
[TestFixture]
1111
public class ProcedureShouldBeFunctionInspectionTests
1212
{
13-
[Test]
14-
[Category("Inspections")]
15-
public void ProcedureShouldBeFunction_NoArgCase_NoResults()
16-
{
17-
const string inputCode =
18-
@"
19-
Private foo As Long
20-
Private Sub Foo()
21-
foo = 42
22-
End Sub";
23-
24-
var vbe = MockVbeBuilder.BuildFromSingleStandardModule(inputCode, out _);
25-
using (var state = MockParser.CreateAndParse(vbe.Object))
26-
{
27-
var inspection = new ProcedureCanBeWrittenAsFunctionInspection(state);
28-
var inspector = InspectionsHelper.GetInspector(inspection);
29-
var inspectionResults = inspector.FindIssuesAsync(state, CancellationToken.None).Result;
30-
31-
Assert.AreEqual(0, inspectionResults.Count());
32-
}
33-
}
34-
3513
[Test]
3614
[Category("Inspections")]
3715
public void ProcedureShouldBeFunction_ReturnsResult()

0 commit comments

Comments
 (0)