14 lines
379 B
PowerShell
14 lines
379 B
PowerShell
Describe "Get-RandomKey" {
|
|
Context "Basic input tests" {
|
|
It "Test1: Should not throw " {
|
|
{Get-RandomAESKey} | Should -Not -Throw
|
|
}
|
|
}
|
|
Context "Basic syntax check" {
|
|
It "Test2: Should return a key with a length of 32 bytes" {
|
|
$Key = Get-RandomAESKey
|
|
$Key.length | Should -Be 32
|
|
}
|
|
}
|
|
}
|