Skip to content

Commit

Permalink
fix(tests): Add showing the list of files in the system in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Capella87 committed Dec 6, 2024
1 parent 5151659 commit 9de2165
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/FixNormalization.Tests/FormDNormalizationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ public class FormDNormalizationTests : IClassFixture<FileSystemFixture>
{
FileSystemFixture fixture;

public FormDNormalizationTests(FileSystemFixture fixture)
private readonly ITestOutputHelper _output;

public FormDNormalizationTests(FileSystemFixture fixture, ITestOutputHelper output)
{
this.fixture = fixture;
_output = output;
}

[InlineData(".\\")]
Expand All @@ -30,6 +33,8 @@ public async Task FormDFileSystem_Directory_Should_Be_Normalized_To_FormC_NonRec

var targetParser = new CommandLineParser<FixCommand>();

FileSystemFixtureHelpers.ShowFilesInFileSystem(fixture, _output);

// Act
var c = targetParser.ParseWithErrorHandling([directoryPath, "-q"]);

Expand Down Expand Up @@ -59,6 +64,8 @@ public async Task FormDFileSystem_Directories_Should_Be_Normalized_To_FormC_Recu
var targetParser = new CommandLineParser<FixCommand>();
string rootPath = fixture.FileSystem!.Path.GetPathRoot(fixture.FileSystem.Directory.GetCurrentDirectory())!;

FileSystemFixtureHelpers.ShowFilesInFileSystem(fixture, _output);

// Act
var c = targetParser.ParseWithErrorHandling([rootPath, "-q", "-r"]);

Expand All @@ -83,6 +90,8 @@ public async Task FormDFileSystem_File_Should_Be_Normalized_To_FormC(string file

var targetParser = new CommandLineParser<FixCommand>();

FileSystemFixtureHelpers.ShowFilesInFileSystem(fixture, _output);

var originalFilename = FileSystemFixtureHelpers.NormalizePathFilenameOnly(fixture, filePath, NormalizationForm.FormD);

// Act
Expand Down

0 comments on commit 9de2165

Please sign in to comment.