Skip to content

Add methods with EnumerationOptions parameter to IDirectoryInfo#641

Merged
fgreinacher merged 4 commits intoTestableIO:mainfrom
sherman89:main
Sep 28, 2020
Merged

Add methods with EnumerationOptions parameter to IDirectoryInfo#641
fgreinacher merged 4 commits intoTestableIO:mainfrom
sherman89:main

Conversation

@sherman89
Copy link
Copy Markdown
Contributor

@sherman89 sherman89 commented Sep 13, 2020

In .NET Standard 2.1, new method overloads were introduced to DirectoryInfo that take in an EnumerationOptions as a parameter. This PR adds those.

Fixes #593

@fgreinacher
Copy link
Copy Markdown
Contributor

@sherman89 There are some compile errors at the moment. Do you need resolving them?

@P-Storm
Copy link
Copy Markdown
Contributor

P-Storm commented Sep 23, 2020

It looks like the abstract functions are not implemented in MockDirectoryInfo.

         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.GetDirectories(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]
         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.EnumerateFiles(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]
         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.EnumerateFileSystemInfos(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]
         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.GetFileSystemInfos(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]
         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.EnumerateDirectories(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]
         MockDirectoryInfo.cs(10,18): error CS0534: 'MockDirectoryInfo' does not implement inherited abstract member 'DirectoryInfoBase.GetFiles(string, EnumerationOptions)' [D:\a\System.IO.Abstractions\System.IO.Abstractions\src\System.IO.Abstractions.TestingHelpers\System.IO.Abstractions.TestingHelpers.csproj]

@sherman89
Copy link
Copy Markdown
Contributor Author

@fgreinacher @P-Storm Oops sorry about that! Fixed it now :)

CI errors seemed not my fault and didn't notice build status anywhere. Hope the PR is ok now...

@fgreinacher
Copy link
Copy Markdown
Contributor

Oops sorry about that! Fixed it now :)

No worries, thank you!

CI errors seemed not my fault and didn't notice build status anywhere. Hope the PR is ok now...

Seems like .NET Install action has introduced some breaking changes with https://github.com/actions/setup-dotnet/releases/tag/v1.7.0. I'll take care of this!

@fgreinacher
Copy link
Copy Markdown
Contributor

fgreinacher commented Sep 28, 2020

#646 fixes the CI issues.

@fgreinacher
Copy link
Copy Markdown
Contributor

fgreinacher commented Sep 28, 2020

I bumped the minor part of the version with 6ac5b67 to reflect this new feature.

@fgreinacher fgreinacher merged commit 9fad9f1 into TestableIO:main Sep 28, 2020
@fgreinacher
Copy link
Copy Markdown
Contributor

Thanks a lot!

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.

IDirectoryInfo missing .NET Standard 2.1 overloads

3 participants