mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
limit, alias members
- limit [int] -> [float] - moved mono bool member to physicalstrip - added AddAliasMembers meta function - mono and karaoke aliases added to virtualstrip prelim pester tests for potato pass
This commit is contained in:
@@ -30,6 +30,11 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
Context 'Strip, physical only' -ForEach @(
|
||||
@{ Index = $phys_in }
|
||||
) {
|
||||
It "Should set Strip[$index].Mono" {
|
||||
$vmr.strip[$index].mono = $value
|
||||
$vmr.strip[$index].mono | Should -Be $expected
|
||||
}
|
||||
|
||||
Context 'Eq' -Skip:$ifNotPotato -ForEach @(
|
||||
@{ Eq = $vmr.strip[$index].eq }
|
||||
) {
|
||||
@@ -50,6 +55,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Strip, first virtual' -ForEach @(
|
||||
@{ Index = $phys_in + 1 }
|
||||
) {
|
||||
It "Should set Strip[$index].MC via alias 'Mono'" {
|
||||
$vmr.strip[$index].mono = $value
|
||||
$vmr.strip[$index].mc | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Bus, one physical one virtual' -ForEach @(
|
||||
@{ Index = $phys_out }, @{ Index = $virt_out }
|
||||
) {
|
||||
@@ -255,6 +269,11 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
$vmr.strip[$index].gain = $gain
|
||||
$vmr.strip[$index].gain | Should -Be $gain
|
||||
}
|
||||
|
||||
It "Should set Strip[$index].Limit" -Skip:$ifBasic {
|
||||
$vmr.strip[$index].limit = $gain
|
||||
$vmr.strip[$index].limit | Should -Be $gain
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Strip, physical only' -ForEach @(
|
||||
@@ -362,18 +381,6 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
|
||||
Describe 'Int Tests' -Tag 'int' {
|
||||
Context 'Strip, one physical, one virtual' -ForEach @(
|
||||
@{ Index = $phys_in }, @{ Index = $virt_in }
|
||||
) {
|
||||
It "Should set and get Strip[$index].Limit" -Skip:$ifBasic -ForEach @(
|
||||
@{ Value = 3; Expected = 3 }
|
||||
@{ Value = -6; Expected = -6 }
|
||||
) {
|
||||
$vmr.strip[$index].limit = $value
|
||||
$vmr.strip[$index].limit | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Strip, physical only' -ForEach @(
|
||||
@{ Index = $phys_in }
|
||||
) {
|
||||
@@ -395,6 +402,19 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Strip, second virtual' -Skip:$ifBasic -ForEach @(
|
||||
@{ Index = $phys_in + 2 }
|
||||
) {
|
||||
It "Should set Strip[$index].K via alias 'Karaoke'" -ForEach @(
|
||||
@{ Value = 0; Expected = 0 }
|
||||
@{ Value = 2; Expected = 2 }
|
||||
@{ Value = 4; Expected = 4 }
|
||||
) {
|
||||
$vmr.strip[$index].karaoke = $value
|
||||
$vmr.strip[$index].k | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Bus, one physical one virtual' -ForEach @(
|
||||
@{ Index = $phys_out }, @{ Index = $virt_out }
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user