mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
Update higher.Tests.ps1
pester tests pass for all kinds manual tests for safety pass: - bus.levels.all() - bus.device.asio
This commit is contained in:
parent
2def27573d
commit
ec05790312
@ -53,9 +53,19 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
Context 'Bus, one physical one virtual' -ForEach @(
|
||||
@{ Index = $phys_out }, @{ Index = $virt_out }
|
||||
) {
|
||||
It "Should set and get Bus[$index].Mono" {
|
||||
$vmr.bus[$index].mono = $value
|
||||
$vmr.bus[$index].mono | Should -Be $expected
|
||||
It "Should set and get Bus[$index].Monitor" -Skip:$ifNotPotato {
|
||||
$vmr.bus[$index].monitor = $value
|
||||
$vmr.bus[$index].monitor | Should -Be $expected
|
||||
}
|
||||
|
||||
It "Should set and get Bus[$index].Mute" {
|
||||
$vmr.bus[$index].mute = $value
|
||||
$vmr.bus[$index].mute | Should -Be $expected
|
||||
}
|
||||
|
||||
It "Should set and get Bus[$index].Sel" -Skip:$ifNotPotato {
|
||||
$vmr.bus[$index].sel = $value
|
||||
$vmr.bus[$index].sel | Should -Be $expected
|
||||
}
|
||||
|
||||
It "Should set and get Bus[$index].mode.amix" -Skip:$ifBasic {
|
||||
@ -88,6 +98,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Bus, physical only' -ForEach @(
|
||||
@{ Index = $phys_out }
|
||||
) {
|
||||
It "Should set and get Bus[$index].vaio" {
|
||||
$vmr.bus[$index].vaio = $value
|
||||
$vmr.bus[$index].vaio | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Macrobutton' -ForEach @(
|
||||
@{ Index = 0 }, @{ Index = 69 }
|
||||
) {
|
||||
@ -386,6 +405,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
Context 'Bus, one physical one virtual' -ForEach @(
|
||||
@{ Index = $phys_out }, @{ Index = $virt_out }
|
||||
) {
|
||||
It "Should set and get Bus[$index].Mono" -ForEach @(
|
||||
@{ Value = 0; Expected = 0 }
|
||||
@{ Value = 1; Expected = 1 }
|
||||
@{ Value = 2; Expected = 2 }
|
||||
) {
|
||||
$vmr.bus[$index].mono = $value
|
||||
$vmr.bus[$index].mono | Should -Be $expected
|
||||
}
|
||||
|
||||
Context 'Eq' -Skip:$ifBasic -ForEach @(
|
||||
@{ Eq = $vmr.bus[$index].eq }
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user