Skip to content

fix: throw correct exception when creating a FileStream with invalid mode/access combination - #973

Merged
mergify[bot] merged 3 commits into
TestableIO:mainfrom
vbreuss:topic/vb/throw-correct-exception-in-stream-constructor
Apr 19, 2023
Merged

fix: throw correct exception when creating a FileStream with invalid mode/access combination#973
mergify[bot] merged 3 commits into
TestableIO:mainfrom
vbreuss:topic/vb/throw-correct-exception-in-stream-constructor

Conversation

@vbreuss

@vbreussvbreuss commented Apr 18, 2023

Copy link
Copy Markdown
Member

Fixes#884.

In addition to the thrown exceptions some implementations and tests had to be adapted:

The corresponding tests had to be adapted!

@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!

@mergify
mergifyBot merged commit e84ace2 into TestableIO:mainApr 19, 2023
@vbreuss
vbreuss deleted the topic/vb/throw-correct-exception-in-stream-constructor branch April 19, 2023 17:43
vbreuss referenced this pull request in Testably/Testably.Abstractions Apr 19, 2023
…19.2.16 (#298)
[![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.15` -> `19.2.16` |
---
### Release Notes
<details>
<summary>TestableIO/System.IO.Abstractions</summary>
###
[`v19.2.16`](https://togithub.com/TestableIO/System.IO.Abstractions/releases/tag/v19.2.16)
##### What's Changed
- fix: throw correct exception when creating a `FileStream` with invalid
mode/access combination by
[@&#8203;vbreuss](https://togithub.com/vbreuss) in
[https://github.com/TestableIO/System.IO.Abstractions/pull/973](https://togithub.com/TestableIO/System.IO.Abstractions/pull/973)
**Full Changelog**:
TestableIO/System.IO.Abstractions@v19.2.15...v19.2.16
</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:eyJjcmVhdGVkSW5WZXIiOiIzNS40OS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNDkuMCJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

This is addressed in release v19.2.16.

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.

MockFileStreamFactory.Create does not throw correct exceptions

3 participants

@vbreuss@fgreinacher@vbtig