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

EligibilityExtensions.If does not fail when the condition is not met #188

Closed
gfraiteur opened this issue Jul 22, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@gfraiteur
Copy link
Member

In a condition like this:

    builder.If( t => t.Attributes.OfAttributeType(typeof(MyAttribute)).Any()).MustSatisfy( t=> t.Attributes.OfAttributeType(typeof(MyAttribute)).First().ConstructorArguments.Length >= 3, x => $"The MyAttribute must have at least 3 arguments");

Then if the condition of the MustSatisfy fails the whole If does not fail.

@PostSharpBot
Copy link
Member

Hello @gfraiteur, thank you for submitting this issue. We will try to get back to you as soon as possible.
Note to the PostSharp team, this ticket is being tracked in our dashboard under ID TP-33571.

@gfraiteur
Copy link
Member Author

Solved in Solved in 2023.3.1-preview..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants