Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockDirectory.EnumerateFiles behave different from Directory.EnumerateFiles #133

Closed
Dzoukr opened this issue Jul 2, 2015 · 0 comments · Fixed by #146
Closed

MockDirectory.EnumerateFiles behave different from Directory.EnumerateFiles #133

Dzoukr opened this issue Jul 2, 2015 · 0 comments · Fixed by #146
Labels
type: bug Issues that describe misbehaving functionality

Comments

@Dzoukr
Copy link

Dzoukr commented Jul 2, 2015

Based on original .NET documentation, using Directory.EnumerateFiles should have one extra behavior:

If the specified extension is exactly three characters long, the method returns files with extensions that begin with the specified extension. For example, "*.xls" returns both "book.xls" and "book.xlsx".

Currently MockDirectory.EnumerateFiles will return "*.xls" only, which is highly logical, but different from original behavior of Directory.EnumerateFiles.

@manne manne added the type: bug Issues that describe misbehaving functionality label Nov 18, 2015
manne added a commit that referenced this issue Dec 6, 2015
…he fileextension of the searchpattern is exactly three characters long

fixes #133
@manne manne closed this as completed in #146 Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues that describe misbehaving functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants