test/MyFunction.Tests.ps1
$here = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "MyFunction" { It "does something useful" { $true | Should Be $true } } |