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

Using Debug.Fail #24752

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Using Debug.Fail #24752

merged 1 commit into from
Apr 26, 2021

Conversation

SergerGood
Copy link
Contributor

No description provided.

@roji
Copy link
Member

roji commented Apr 24, 2021

This looks OK, but at least for EF Core we've made the decision to not use Debug.Assert (or Fail) since they crash the test process and can make it hard to understand what happened (we use Check.DebugAssert which throws an exception instead). Do we want to do the same in Microsoft.Data.Sqlite? @bricelam @ajcvickers

@ajcvickers
Copy link
Contributor

I'll leave that up to @bricelam.

Copy link
Contributor

@bricelam bricelam left a comment

Choose a reason for hiding this comment

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

:shipit:

These are left over from when we targeted .NET Standard 1.3

@bricelam
Copy link
Contributor

bricelam commented Apr 26, 2021

I'm perfectly fine keeping Debug.Assert/Fail--I use a good test runner that doesn't crash 😉

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

Successfully merging this pull request may close these issues.

4 participants