diff --git a/test/higher.Tests.ps1 b/test/higher.Tests.ps1 index 6e97a2a..96cf780 100644 --- a/test/higher.Tests.ps1 +++ b/test/higher.Tests.ps1 @@ -109,12 +109,18 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' { } } - Context 'Bus, one physical, one virtual' -ForEach @( - @{ Index = 0; Offset = 30 }, @{ Index = 4; Offset = -3 } - ){ - It "Should set Strip[$index].Gain to $($value - $offset)" { - $vmr.bus[$index].gain = $($value - $offset) - $vmr.bus[$index].gain | Should -Be $($value - $offset) + Describe 'Bus tests' { + Context 'one physical, one virtual' -ForEach @( + @{ Index = 0 }, @{ Index = 4 } + ){ + Context 'gain' -ForEach @( + @{ Value = 5.2; Expected = 5.2 }, @{ Value = -38.2; Expected = -38.2 } + ){ + It "Should set Bus[$index].Gain to $value" { + $vmr.bus[$index].gain = $value + $vmr.bus[$index].gain | Should -Be $expected + } + } } } } diff --git a/test/lower.Tests.ps1 b/test/lower.Tests.ps1 index 2534b51..3fbefeb 100644 --- a/test/lower.Tests.ps1 +++ b/test/lower.Tests.ps1 @@ -33,7 +33,7 @@ Describe -Tag 'lower', -TestName 'All Lower Tests' { ){ It "Should set Strip[0].$param to 1" { Param_Set -PARAM "Strip[$index].$param" -VALUE $value - Param_Get -PARAM "Strip[$index].$param" | Should -Be $value + Param_Get -PARAM "Strip[$index].$param" | Should -Be $expected } } } @@ -48,7 +48,7 @@ Describe -Tag 'lower', -TestName 'All Lower Tests' { ){ It "Should set Strip[$index].Label to $value" { Param_Set -PARAM "Strip[$index].Label" -VALUE $value - Param_Get -PARAM "Strip[$index].Label" -IS_STRING $true | Should -Be $value + Param_Get -PARAM "Strip[$index].Label" -IS_STRING $true | Should -Be $expected } } }