Skip to content

Commit 2542c6b

Browse files
committed
Rename ParseTreeMetricsAnalyst to enable automagic injection
1 parent dfb61b0 commit 2542c6b

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

RetailCoder.VBE/Navigation/CodeMetrics/ParseTreeMetricsAnalyst.cs renamed to RetailCoder.VBE/Navigation/CodeMetrics/CodeMetricsAnalyst.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
namespace Rubberduck.Navigation.CodeMetrics
1212
{
13-
public class ParseTreeMetricsAnalyst : ICodeMetricsAnalyst
13+
public class CodeMetricsAnalyst : ICodeMetricsAnalyst
1414
{
1515
private readonly IIndenterSettings indenterSettings;
1616

17-
public ParseTreeMetricsAnalyst(IIndenterSettings indenterSettings)
17+
public CodeMetricsAnalyst(IIndenterSettings indenterSettings)
1818
{
1919
this.indenterSettings = indenterSettings;
2020
}

RetailCoder.VBE/Rubberduck.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@
344344
<Compile Include="Common\WindowsOperatingSystem.cs" />
345345
<Compile Include="Common\UndocumentedAttribute.cs" />
346346
<Compile Include="Navigation\CodeExplorer\ICodeExplorerDeclarationViewModel.cs" />
347+
<Compile Include="Navigation\CodeMetrics\CodeMetricsAnalyst.cs" />
347348
<Compile Include="Navigation\CodeMetrics\CodeMetricsResult.cs" />
348349
<Compile Include="Navigation\CodeMetrics\ICodeMetricsAnalyst.cs" />
349-
<Compile Include="Navigation\CodeMetrics\ParseTreeMetricsAnalyst.cs" />
350350
<Compile Include="Navigation\Folders\FolderHelper.cs" />
351351
<Compile Include="Refactorings\EncapsulateField\PropertyGenerator.cs" />
352352
<Compile Include="Refactorings\ExtractMethod\ExtractedMethod.cs" />

RubberduckTests/Stats/ParseTreeMetricsAnalystTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@
33
using RubberduckTests.Mocks;
44
using RubberduckTests.Settings;
55
using System;
6-
using System.Collections.Generic;
76
using System.Linq;
87
using System.Text;
9-
using System.Threading;
10-
using System.Threading.Tasks;
118

129
namespace RubberduckTests.Stats
1310
{
1411
[TestClass]
1512
public class ParseTreeMetricsAnalystTests
1613
{
17-
private ParseTreeMetricsAnalyst cut;
14+
private CodeMetricsAnalyst cut;
1815

1916
[TestInitialize]
2017
public void Setup()
2118
{
22-
cut = new ParseTreeMetricsAnalyst(IndenterSettingsTests.GetMockIndenterSettings());
19+
cut = new CodeMetricsAnalyst(IndenterSettingsTests.GetMockIndenterSettings());
2320
}
2421

2522
[TestMethod]

0 commit comments

Comments
 (0)