Skip to content

Commit

Permalink
Use Path.Combine for platform independent file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Elscrux committed Nov 21, 2024
1 parent df2ce93 commit 9475f63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void TestDataDirectory(
{
sut.Reader.ReadInto(line.AsSpan(), config);
config.DataDirectoryPath.Should().NotBeNull();
config.DataDirectoryPath!.Value.Path.Should().Be(@"C:\some\path");
config.DataDirectoryPath!.Value.Path.Should().Be(Path.Combine("C:", "some", "path"));
}

[Theory]
Expand Down Expand Up @@ -82,6 +82,6 @@ public void TestOutputFilePath(
{
sut.Reader.ReadInto(line.AsSpan(), config);
config.OutputFilePath.Should().NotBeNull();
config.OutputFilePath!.Value.Path.Should().Be(@"C:\some\path");
config.OutputFilePath!.Value.Path.Should().Be(Path.Combine("C:", "some", "path"));
}
}

0 comments on commit 9475f63

Please sign in to comment.