Skip to content

fix: null-handling in Wrap-Method in factories for IDirectoryInfo or IFileInfo - #976

Merged
mergify[bot] merged 4 commits into
TestableIO:mainfrom
vbreuss:topic/vb/fix-nullable-in-factories
Apr 23, 2023
Merged

fix: null-handling in Wrap-Method in factories for IDirectoryInfo or IFileInfo#976
mergify[bot] merged 4 commits into
TestableIO:mainfrom
vbreuss:topic/vb/fix-nullable-in-factories

Conversation

@vbreuss

Copy link
Copy Markdown
Member

Fixes#975:
When providing null as parameter to the implementations of IFileInfoFactory or IDirectoryInfoFactory return null instead of throwing an exception.

@fgreinacherfgreinacher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, thanks for the quick fix!

@mergify
mergifyBot merged commit 1fcc5cd into TestableIO:mainApr 23, 2023
mergifyBot pushed a commit that referenced this pull request Apr 24, 2023
…FileSystemWatcher` (#977)
Building on #976 also fix null-handling for DriveInfo and FileSystemWatcher factories:
When providing null as parameter to the implementations of IDriveInfoFactory or IFileSystemWatcherFactory return null instead of throwing an exception.
This extends the issue reported in #975 to other factories used in System.IO.Abstractions.
@github-actions

Copy link
Copy Markdown

This is addressed in release v19.2.17.

@github-actionsgithub-actionsBot added the state: released Issues that are released label Apr 24, 2023
@vbreuss
vbreuss deleted the topic/vb/fix-nullable-in-factories branch April 24, 2023 06:47
vbreuss referenced this pull request in Testably/Testably.Abstractions Apr 25, 2023
…19.2.18 (#301)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[TestableIO.System.IO.Abstractions](https://togithub.com/TestableIO/System.IO.Abstractions)
| nuget | patch | `19.2.16` -> `19.2.18` |
---
### Release Notes
<details>
<summary>TestableIO/System.IO.Abstractions</summary>
###
[`v19.2.18`](https://togithub.com/TestableIO/System.IO.Abstractions/releases/tag/v19.2.18)
#### What's Changed
- fix: null-handling in Wrap-Method in factories for `IDriveInfo` or
`IFileSystemWatcher` by [@&#8203;vbreuss](https://togithub.com/vbreuss)
in
[https://github.com/TestableIO/System.IO.Abstractions/pull/977](https://togithub.com/TestableIO/System.IO.Abstractions/pull/977)
**Full Changelog**:
TestableIO/System.IO.Abstractions@v19.2.17...v19.2.18
###
[`v19.2.17`](https://togithub.com/TestableIO/System.IO.Abstractions/releases/tag/v19.2.17)
##### What's Changed
- fix: null-handling in Wrap-Method in factories for `IDirectoryInfo` or
`IFileInfo` by [@&#8203;vbreuss](https://togithub.com/vbreuss) in
[https://github.com/TestableIO/System.IO.Abstractions/pull/976](https://togithub.com/TestableIO/System.IO.Abstractions/pull/976)
**Full Changelog**:
TestableIO/System.IO.Abstractions@v19.2.16...v19.2.17
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Testably/Testably.Abstractions).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS41Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuNTguMCJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: releasedIssues that are released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileInfoFactory and DirectoryInfoFactory Wrap implementations don't match the interface for nullability

3 participants

@vbreuss@fgreinacher@vbtig