mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
tests
pester tests pass
This commit is contained in:
parent
e0b01288ff
commit
80869d4306
@ -110,6 +110,23 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
|||||||
$vmr.command.lock = $value
|
$vmr.command.lock = $value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Context 'Patch' {
|
||||||
|
It 'Should set and get Patch.insert[$insert]' -Skip:$ifBasic {
|
||||||
|
$vmr.patch.insert[$insert].set($value)
|
||||||
|
$vmr.patch.insert[$insert].get() | Should -Be $value
|
||||||
|
}
|
||||||
|
|
||||||
|
It 'Should set and get Patch.postfadercomposite' -Skip:$ifBasic {
|
||||||
|
$vmr.patch.postfadercomposite = $value
|
||||||
|
$vmr.patch.postfadercomposite | Should -Be $value
|
||||||
|
}
|
||||||
|
|
||||||
|
It 'Should set and get Patch.postfxinsert' -Skip:$ifBasic {
|
||||||
|
$vmr.patch.postfxinsert = $value
|
||||||
|
$vmr.patch.postfxinsert | Should -Be $value
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe 'Float Tests' {
|
Describe 'Float Tests' {
|
||||||
@ -241,6 +258,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Context 'Patch' {
|
||||||
|
It 'Should set and get Patch.composite[$composite]' -Skip:$ifBasic -ForEach @(
|
||||||
|
@{ Value = 22 }, @{ Value = 6 }
|
||||||
|
) {
|
||||||
|
$vmr.patch.composite[$composite].set($value)
|
||||||
|
$vmr.patch.composite[$composite].get() | Should -Be $value
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe 'String Tests' {
|
Describe 'String Tests' {
|
||||||
|
|||||||
@ -16,6 +16,8 @@ function main() {
|
|||||||
$virt_out = $vmr.kind.p_out + $vmr.kind.v_out - 1
|
$virt_out = $vmr.kind.p_out + $vmr.kind.v_out - 1
|
||||||
$vban_in = $vmr.kind.vban_in - 1
|
$vban_in = $vmr.kind.vban_in - 1
|
||||||
$vban_out = $vmr.kind.vban_out - 1
|
$vban_out = $vmr.kind.vban_out - 1
|
||||||
|
$insert = $vmr.kind.insert - 1
|
||||||
|
$composite = $vmr.kind.composite - 1
|
||||||
|
|
||||||
# skip conditions by kind
|
# skip conditions by kind
|
||||||
$ifBasic = $vmr.kind.name -eq 'basic'
|
$ifBasic = $vmr.kind.name -eq 'basic'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user