Update higher.Tests.ps1

add vban.outstream.on tests.

fix toggle vban.instream.on tests
This commit is contained in:
onyx-and-iris 2022-01-08 16:05:12 +00:00
parent dd425f6430
commit 0e756871e1

View File

@ -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