Public/Tests/Get-MultipleAlbums.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\..\$sut" $TestAlbumArray = @( "albumid1", "albumid2", "albumid3" ) $TestAlbumArrayConstructed = "albumid1%2Calbumid2%2Calbumid3" Describe "Get-MultipleAlbums" { Context "We have multiple albums" { Mock Send-SpotifyCall { } It "constructs a single string with all album Ids" { Get-MultipleAlbums -AlbumArray $TestAlbumArray ` | Should -Be $TestAlbumArrayConstructed } } } |