Skip to content

Add more assertion#959

Merged
nohwnd merged 9 commits intopester:masterfrom
nohwnd:add-more-assertion
Dec 17, 2017
Merged

Add more assertion#959
nohwnd merged 9 commits intopester:masterfrom
nohwnd:add-more-assertion

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Dec 17, 2017

changelog:

  • Add -Because parameters to all assertions Fixes Add -Message param to Should assertion #312
  • Add -BeLessOrEqual and -BeGreaterOrEqual
  • Add -Contain (that operates on arrays) Fixes Should Contains for evaluating arrays #121
  • Add -BeLikeExactly
  • Add -HaveType alias to -BeOfType
  • Fix assertion messages in -BeOfType Fixes BeOfType #729
  • Throw argument exception when -BeOfType is given type that is not loaded
  • Add -PassThru to -Throw to get the exception when some is thrown and passes the filters
  • Add -BeTrue to test for truthy values
  • Add -BeFalse to test for falsy values
  • Add -HaveCount to count stuff in collections

Remove many duplicated tests in Be, and rewrite many tests using Verify to remove interdependencies between Shoulds

@nohwnd nohwnd merged commit 86a9141 into pester:master Dec 17, 2017
@nohwnd nohwnd deleted the add-more-assertion branch January 11, 2019 21:22
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.

1 participant