Skip to content

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Apr 18, 2023

Fixes #884.

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

The corresponding tests had to be adapted!

@vbreuss vbreuss requested a review from fgreinacher April 18, 2023 20:01
Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@mergify mergify bot merged commit e84ace2 into TestableIO:main Apr 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

This is addressed in release v19.2.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: released Issues 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