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

Move Ensure and ExtensionsRoots to Platform.Assertions library? #68

Open
FreePhoenix888 opened this issue Dec 10, 2021 · 3 comments
Open
Labels
question Further information is requested

Comments

@FreePhoenix888
Copy link
Member

No description provided.

@Konard Konard added the question Further information is requested label Dec 10, 2021
@Konard
Copy link
Member

Konard commented Dec 10, 2021

We have to decide what is more important here:

  • The fact that assert/ensure operation throws an exception.
  • The role of action they do.

@Konard Konard changed the title Move Ensure.cs to Assertions library Move Ensure and ExtensionsRoots to Platform.Assertions library? Dec 10, 2021
@Konard
Copy link
Member

Konard commented Dec 10, 2021

Assertion (Ensure) is based on predicate (condition).
Throw is unconditional exception triggering.

@FreePhoenix888
Copy link
Member Author

Assertion (Ensure) is based on predicate (condition). Throw is unconditional exception triggering.

Then we should move it to the Platform.Assertions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants