From 0e756871e16610cad3f85a5f085e185cb4e4e079 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 8 Jan 2022 16:05:12 +0000 Subject: [PATCH] Update higher.Tests.ps1 add vban.outstream.on tests. fix toggle vban.instream.on tests --- test/higher.Tests.ps1 | 44 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/test/higher.Tests.ps1 b/test/higher.Tests.ps1 index 92e00e7..648f0af 100644 --- a/test/higher.Tests.ps1 +++ b/test/higher.Tests.ps1 @@ -651,8 +651,8 @@ Describe -Tag 'higher', -TestName 'All Alias Tests' { } It 'Should set vban.instream[0].on to 0' { - $vmr.vban.instream[0].on = $true - $vmr.vban.instream[0].on | Should -Be $true + $vmr.vban.instream[0].on = $false + $vmr.vban.instream[0].on | Should -Be $false } It 'Should set vban.instream[1].on to 1' { @@ -661,8 +661,8 @@ Describe -Tag 'higher', -TestName 'All Alias Tests' { } It 'Should set vban.instream[1].on to 0' { - $vmr.vban.instream[1].on = $true - $vmr.vban.instream[1].on | Should -Be $true + $vmr.vban.instream[1].on = $false + $vmr.vban.instream[1].on | Should -Be $false } It 'Should set vban.instream[2].on to 1' { @@ -671,8 +671,8 @@ Describe -Tag 'higher', -TestName 'All Alias Tests' { } It 'Should set vban.instream[2].on to 0' { - $vmr.vban.instream[2].on = $true - $vmr.vban.instream[2].on | Should -Be $true + $vmr.vban.instream[2].on = $false + $vmr.vban.instream[2].on | Should -Be $false } } @@ -740,6 +740,38 @@ Describe -Tag 'higher', -TestName 'All Alias Tests' { } } + Context 'vban.outstream[i].on' { + It 'Should set vban.outstream[0].on to 1' { + $vmr.vban.outstream[0].on = $true + $vmr.vban.outstream[0].on | Should -Be $true + } + + It 'Should set vban.outstream[0].on to 0' { + $vmr.vban.outstream[0].on = $false + $vmr.vban.outstream[0].on | Should -Be $false + } + + It 'Should set vban.outstream[1].on to 1' { + $vmr.vban.outstream[1].on = $true + $vmr.vban.outstream[1].on | Should -Be $true + } + + It 'Should set vban.outstream[1].on to 0' { + $vmr.vban.outstream[1].on = $false + $vmr.vban.outstream[1].on | Should -Be $false + } + + It 'Should set vban.outstream[2].on to 1' { + $vmr.vban.outstream[2].on = $true + $vmr.vban.outstream[2].on | Should -Be $true + } + + It 'Should set vban.outstream[2].on to 0' { + $vmr.vban.outstream[2].on = $false + $vmr.vban.outstream[2].on | Should -Be $false + } + } + Context 'vban.outstream[i].sr' { It 'Should set vban.outstream[0].sr to 44100' { $vmr.vban.outstream[0].sr = 44100