From ec05790312a1b80e84df88fb0423dbb57df31c8c Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Mon, 1 Dec 2025 13:22:07 -0500 Subject: [PATCH] Update higher.Tests.ps1 pester tests pass for all kinds manual tests for safety pass: - bus.levels.all() - bus.device.asio --- tests/higher.Tests.ps1 | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tests/higher.Tests.ps1 b/tests/higher.Tests.ps1 index 8ae38fe..8c950ef 100644 --- a/tests/higher.Tests.ps1 +++ b/tests/higher.Tests.ps1 @@ -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 } ) {