Skip to content

Commit bc6818f

Browse files
committed
refactor: update file naming convention for output files in tests
1 parent 3d81868 commit bc6818f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CodeLineCounter.Tests/DependencyGraphGeneratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public async Task generate_graph_with_valid_dependencies_creates_dot_file()
3030
new DependencyRelation { SourceClass = "ClassB", SourceNamespace = "NamespaceB", SourceAssembly = "AssemblyB", TargetClass = "ClassC", TargetNamespace = "NamespaceB", TargetAssembly = "AssemblyB", FilePath = "path/to/file", StartLine = 1}
3131
};
3232

33-
string fileName = "test_graph.dot";
33+
string fileName = "testGraph.dot";
3434

3535
string outputPath = Path.Combine(_testDirectory, fileName);
3636

CodeLineCounter.Tests/SolutionAnalyzerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void analyze_and_export_solution_succeeds_with_valid_inputs()
5656

5757
// Assert
5858
Assert.Null(exception);
59-
Assert.True(File.Exists(Path.Combine(outputPath, "TestSolution-CodeMetrics.csv")));
59+
Assert.True(File.Exists(Path.Combine(outputPath, "TestSolution.CodeMetrics.csv")));
6060
}
6161

6262
}
@@ -230,8 +230,8 @@ public void export_results_with_valid_input_exports_all_files()
230230
Console.SetOut(sw);
231231
SolutionAnalyzer.ExportResults(result, solutionPath, format, baseSolutionPath);
232232
// Assert
233-
Assert.True(File.Exists(Path.Combine(baseSolutionPath, "CodelineCounter-CodeMetrics.csv")));
234-
Assert.True(File.Exists(Path.Combine(baseSolutionPath, "CodelineCounter-CodeDuplications.csv")));
233+
Assert.True(File.Exists(Path.Combine(baseSolutionPath, "CodelineCounter.CodeMetrics.csv")));
234+
Assert.True(File.Exists(Path.Combine(baseSolutionPath, "CodelineCounter.CodeDuplications.csv")));
235235
Assert.True(File.Exists(Path.Combine(baseSolutionPath, "CodelineCounter-Dependencies.dot")));
236236
}
237237

0 commit comments

Comments
 (0)