Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Assert
0.9.2
Axiom/src/Verify-NotNull.ps1
function
Verify-NotNull
{
param
(
[
Parameter
(
ValueFromPipeline
=
$true
)
]
$Actual
)
if
(
$null
-eq
$Actual
)
{
throw
[Exception]
"Expected not `$null but got `$null."
}
$Actual
}