-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
When not specified, it should be considuered as VOID.
This is an example of what the current version generates:
#Public Method
It '[AnsibleVariableCollection] --> SetVariables($Variables) : - should return type []' {
# -- Arrange
[AnsibleVar[]]$Variables = ''
# -- Act
$Instance = [AnsibleVariableCollection]::New()
# -- Assert
($Instance.SetVariables($Variables)).GetType().Name | should be
} #End It BlockThis is what it should actually look like:
#Public Method
It '[AnsibleVariableCollection] --> SetVariables($Variables) : - should return type []' {
# -- Arrange
$Variables = @()
$Variables += [AnsibleVar]::New('var1', 'val1', 'host1')
$Variables += [AnsibleVar]::New('var2', 'val2', 'host2')
# -- Act
$Instance = [AnsibleVariableCollection]::New()
# -- Assert
$Instance.SetVariables($Variables) | should be $null
} #End It Block
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request