auto login added, tests updated to take $true, $false

Added $this.Login() into Remote constructor to automatically log user in.

Updated test codes accordingly.

Boolean params take $true and $false

Updated readme to reflect changes.
This commit is contained in:
Onyx and Iris
2021-04-29 00:48:16 +01:00
parent ffc46fae94
commit 8a3b8da635
8 changed files with 199 additions and 243 deletions

View File

@@ -63,17 +63,13 @@ Function Buttons {
if ($MyInvocation.InvocationName -ne '.')
{
. .\voicemeeter.ps1
try {
$vmr = [Remote]::new('potato')
$vmr = [Remote]::new('potato')
$vmr.Login()
$vmr.button = Buttons
$vmr.button[0].state = 1
$vmr.button[0].state
$vmr.button[0].state = 0
$vmr.button[0].state
$vmr.Logout()
$vmr.button[0].state = $true
$vmr.button[0].state
$vmr.button[0].state = $false
$vmr.button[0].state
}
finally { $vmr.Logout() }
}