-
|
I have the following Pester test, which is failing. Anyone know how to rewrite this test so that it succeeds? How do I properly use the Actual ResultExpected ResultTest passes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
In your example, you'd probably want to use |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I also tried |
Beta Was this translation helpful? Give feedback.
Should -Existsis for testing paths, ex. a filesystem path. See https://pester.dev/docs/assertions/#existIn your example, you'd probably want to use
Should -Not -BeNullOrEmpty, or save the response in a variable and test one or more properties (count, IP, record types etc.) usingShould -Be,Should -HaveCountetc.