OBSOLETE. Use Assert-That -Contains
instead.
Assert-Contains [[-Haystack] <Object>] [[-Needle] <Object>] [[-Message] <String>] [<CommonParameters>]
OBSOLETE. Use Assert-That -Contains
instead.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Haystack | Object | The collection to check. |
false | false | |
Needle | Object | The object to check the collection for. |
false | false | |
Message | String | A message to show when the assertion fails. |
false | false |
Assert-That @( 1, 2, 3 ) -Contains 3
Demonstrates that you should use Assert-That
instead.
Assert-That @( 1, 2 ) -Contains 3 'Three is the loneliest number.'
Demonstrates that you should use Assert-That
instead.