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

Add Should-HaveParameter #2621

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add Should-HaveParameter #2621

wants to merge 3 commits into from

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Feb 20, 2025

PR Summary

Add Should-HaveParameter and its Not variant.

Fix #2618

@nohwnd
Copy link
Member Author

nohwnd commented Feb 20, 2025

from the issues mentioned here: #2618 (comment)

I moved the Actual down to enable the pipeline consuming. (to address #2527 (comment))
I exposed just the parameter name in the Not variant to address #2105

I tried to check the default value, but now we don't have the actual value in our hand, because we are using the ast approach, so we just have extents, maybe I can check that but no-one asked for he feature so I did not want to waste too much time on it https://github.com/pester/Pester/tree/check-parameter-default-type

@nohwnd
Copy link
Member Author

nohwnd commented Feb 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

Add Should-HaveParameter, to replace Should -HaveParameter
1 participant