PSAclReport.Tests.ps1

<#
    .SYNOPSIS
        TEST TDD RDS
    .DESCRIPTION
        Unblock-File
    .EXAMPLE
        While ($true) {$test = Invoke-Pester -CodeCoverage .\RDS.Tests.ps1 -PassThru; $test.FailedCount; start-sleep -s 15}
    .EXAMPLE
        https://github.com/pester/Pester/wiki/Should
 
        Be
        BeExactly
        BeGreaterThan
        BeGreaterOrEqual
        BeIn
        BeLessThan
        BeLessOrEqual
        BeLike
        BeLikeExactly
        BeOfType
        BeTrue
        BeFalse
        HaveCount
        Contain
        Exist
        FileContentMatch
        FileContentMatchExactly
        FileContentMatchMultiline
        Match
        MatchExactly
        Throw
        BeNullOrEmpty
 
    .NOTES
        Alopez 2017
        Em@il : alban.lopez@gmail.com
 
        require https://github.com/pester/Pester
 
        https://github.com/pester/Pester/wiki/Should
        Get-ChildItem C:\Users\alopez\Documents\WindowsPowerShell\Modules\Pester\ -Recurse | Unblock-File
 #>



 $psd1 = $MyInvocation.MyCommand.Source -replace ('\.Tests\.ps1', '.psd1')
 $psd1 | Import-Module -wa 0 -Force
 
 #Get-ChildItem $("$($MyInvocation.MyCommand.Path)\RDS.Tests.ps1" -replace('\.Tests\.ps1', '*.psm1')) | ForEach-Object {Import-Module $_.FullName -Force}
 write-center $psd1 -fore Red
 function    global:Write-LogStep {}

 
Describe "Man" {
    Context "CodeFuntion" {
        It "Build-Readme.md" {
            {Build-Readme.md '*.psm1' -MarkDownFileName 'README.md'} | Should -Not -Throw
        }
    }
}


ipmo PsWrite -Function Write-LogStep -Force