Tests/ConvertFrom-Base64.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
. $PSScriptRoot\..\Src\ConvertFrom-Base64.ps1

Describe 'ConvertFrom-Base64' {
    $encodedString = 'dGVzdCBzdHJpbmc='
    $decodedString = 'test string'

    It 'returns the expected decoded string given a Base64 encoded string' {
        ConvertFrom-Base64 -String $encodedString | Should -Be $decodedString
        $encodedString | ConvertFrom-Base64 | Should -Be $decodedString
    }
}