[lang-ref] ( get_current_function_name ) ( powershell )

It 'should get current function name' {
    # $MyInvocation.MyCommand.Name

    function Get-CurrentFunctionName {
        $MyInvocation.MyCommand.Name
    }

    Get-CurrentFunctionName | Should -Be 'Get-CurrentFunctionName'
}