Skip to content

Commit 56ea56d

Browse files
committed
refactor: remove unnecessary file path initialization in CodeAnalyzerTests
1 parent d6fe7ce commit 56ea56d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

CodeLineCounter.Tests/CodeAnalyzerTests.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public void AnalyzeSourceCode_Should_Set_CurrentNamespace()
2828
{
2929
// Arrange
3030
var projectNamespaceMetrics = new Dictionary<string, int>();
31-
var basePath = FileUtils.GetBasePath();
32-
var file = Path.GetFullPath(Path.Combine(basePath, "..", "..", "..", "CodeAnalyzerTests.cs"));
3331
var lines = new string[]
3432
{
3533
"namespace MyNamespace",
@@ -50,8 +48,6 @@ public void AnalyzeSourceCode_Should_Set_FileLineCount()
5048
{
5149
// Arrange
5250
var projectNamespaceMetrics = new Dictionary<string, int>();
53-
var basePath = FileUtils.GetBasePath();
54-
var file = Path.GetFullPath(Path.Combine(basePath, "..", "..", "..", "CodeAnalyzerTests.cs"));
5551
var lines = new string[]
5652
{
5753
"namespace MyNamespace",
@@ -72,8 +68,6 @@ public void AnalyzeSourceCode_Should_Set_FileCyclomaticComplexity()
7268
{
7369
// Arrange
7470
var projectNamespaceMetrics = new Dictionary<string, int>();
75-
var basePath = FileUtils.GetBasePath();
76-
var file = Path.GetFullPath(Path.Combine(basePath, "..", "..", "..", "CodeAnalyzerTests.cs"));
7771
var lines = new string[]
7872
{
7973
"namespace MyNamespace",

0 commit comments

Comments
 (0)