Skip to content

Conversation

@konstmsu
Copy link
Contributor

@konstmsu konstmsu commented Jan 3, 2025

Fixes #22

</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="7.0.0" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For more developer-friendly assertions

var actual = path.ExpandUser(homeDir);

Assert.Equal(expected, actual);
path.ExpandUser(homeDir).Should().Be(expected);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure FluentAssertions is available in this project

throw new ArgumentException("Glob may only be called on directories.");
}
foreach (var dir in DirectoryInfo.GetDirectories())
foreach (var dir in DirectoryInfo.GetDirectories(pattern, scope))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual fix

@nemec
Copy link
Owner

nemec commented Jan 4, 2025

I see some tests are failing, but it doesn't look related to your changes. Thanks for this.

@nemec nemec merged commit 98f8b91 into nemec:master Jan 4, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListDir doesn't apply pattern on Mac

2 participants