diff --git a/tests/higher.Tests.ps1 b/tests/higher.Tests.ps1 index 87f9397..0206ab7 100644 --- a/tests/higher.Tests.ps1 +++ b/tests/higher.Tests.ps1 @@ -110,6 +110,23 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' { $vmr.command.lock = $value } } + + Context 'Patch' { + It 'Should set and get Patch.insert[$insert]' -Skip:$ifBasic { + $vmr.patch.insert[$insert].set($value) + $vmr.patch.insert[$insert].get() | Should -Be $value + } + + It 'Should set and get Patch.postfadercomposite' -Skip:$ifBasic { + $vmr.patch.postfadercomposite = $value + $vmr.patch.postfadercomposite | Should -Be $value + } + + It 'Should set and get Patch.postfxinsert' -Skip:$ifBasic { + $vmr.patch.postfxinsert = $value + $vmr.patch.postfxinsert | Should -Be $value + } + } } Describe 'Float Tests' { @@ -241,6 +258,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' { } } } + + Context 'Patch' { + It 'Should set and get Patch.composite[$composite]' -Skip:$ifBasic -ForEach @( + @{ Value = 22 }, @{ Value = 6 } + ) { + $vmr.patch.composite[$composite].set($value) + $vmr.patch.composite[$composite].get() | Should -Be $value + } + } } Describe 'String Tests' { diff --git a/tests/run.ps1 b/tests/run.ps1 index e6eafba..e6fa0a6 100644 --- a/tests/run.ps1 +++ b/tests/run.ps1 @@ -16,6 +16,8 @@ function main() { $virt_out = $vmr.kind.p_out + $vmr.kind.v_out - 1 $vban_in = $vmr.kind.vban_in - 1 $vban_out = $vmr.kind.vban_out - 1 + $insert = $vmr.kind.insert - 1 + $composite = $vmr.kind.composite - 1 # skip conditions by kind $ifBasic = $vmr.kind.name -eq 'basic'