prefix, filetype

changed to write-only properties
pester tests pass for all kinds
This commit is contained in:
pblivingston
2025-12-04 00:12:37 -05:00
parent 1d41be7396
commit df86ad2175
5 changed files with 38 additions and 25 deletions

View File

@@ -910,8 +910,8 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
try {
$prefix = 'stringtest'
$filetype = 'wav'
$vmr.recorder.prefix($prefix)
$vmr.recorder.filetype($filetype)
$vmr.recorder.prefix = $prefix
$vmr.recorder.filetype = $filetype
$vmr.recorder.state = 'record'
$stamp = '{0:yyyy-MM-dd} at {0:HH}h{0:mm}m{0:ss}s' -f (Get-Date)
@@ -956,8 +956,8 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
BeforeAll {
$prefix = 'actiontest'
$filetype = 'wav'
$vmr.recorder.prefix($prefix)
$vmr.recorder.filetype($filetype)
$vmr.recorder.prefix = $prefix
$vmr.recorder.filetype = $filetype
}
BeforeEach {

View File

@@ -6,8 +6,8 @@ Import-Module (Join-Path (Split-Path $PSScriptRoot -Parent) 'lib\Voicemeeter.psm
function Test-RecDir ([object]$vmr, [string]$recDir) {
$prefix = 'temp'
$filetype = 'wav'
$vmr.recorder.prefix($prefix)
$vmr.recorder.filetype($filetype)
$vmr.recorder.prefix = $prefix
$vmr.recorder.filetype = $filetype
try {