Skip to content

Commit

Permalink
refactor: add test to ensure, that GetTempPath ends with a director…
Browse files Browse the repository at this point in the history
…y separator (#675)

Add test to ensure, that `GetTempPath` ends with a directory separator
  • Loading branch information
vbreuss authored Nov 22, 2024
1 parent cb6b669 commit 45263ff
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ public void GetTempPath_MacOs_ShouldBeTmp()
result.Should().Match("/var/folders/??/*/T/");
}

[SkippableFact]
public void GetTempPath_ShouldEndWithDirectorySeparator()
{
string directorySeparator = FileSystem.Path.DirectorySeparatorChar.ToString();

string result = FileSystem.Path.GetTempPath();

result.Should().EndWith(directorySeparator);
}

[SkippableFact]
public void GetTempPath_ShouldRemainTheSame()
{
Expand Down

0 comments on commit 45263ff

Please sign in to comment.