external help file | Module Name | online version | schema |
---|---|---|---|
PSKoans-help.xml |
PSKoans |
2.0.0 |
Gets a blank item that does not equal anything.
Get-Blank [[-|PipeInput] <Object>] [[-|ParameterInput] <Object[]>] [<CommonParameters>]
Get-Blank returns an object of type [Blank] as defined in the PSKoans module.
This object is not equivalent to any other type of object, including itself, when compared
with a standard -eq
comparison.
The only exception, which is unavoidable, is that it is considered equal to $true when $true is on the left-hand side of the comparison. This kind of comparison may sometimes need to be carefully avoided when framing a koan assertion.
For instance,an assertion such as ____ | Should -BeTrue
WILL pass, although it should not.
Get-Blank
Returns a blank object.
__
Returns a blank object.
Used to capture the input in a pipeline context, to avoid erroring out in those contexts. This parameter is not intended to be used directly, and captures all pipeline input.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Used to capture parameter names and arguments when used as a substitute for any other cmdlet. This parameter is not intended to be used directly, and collects all argument names and values.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
An object that has no value, and is generally considered to be not equal to any value, including null.
Author: Joel Sallow (@vexx32)