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