diff --git a/Test/include/invokeCommand.mock.ps1 b/Test/include/invokeCommand.mock.ps1 index 9fbd479..0200065 100644 --- a/Test/include/invokeCommand.mock.ps1 +++ b/Test/include/invokeCommand.mock.ps1 @@ -134,7 +134,7 @@ function Get-MockFileContentJson{ Assert-MockFileNotfound $FileName - $content = Get-MockFileContent -fileName $filename | ConvertFrom-Json -AsHashtable:$AsHashtable -Depth 10 + $content = Get-MockFileContent -fileName $filename | ConvertFrom-Json -AsHashtable:$AsHashtable -Depth 100 return $content } Export-ModuleMember -Function Get-MockFileContentJson @@ -255,3 +255,5 @@ function Assert-MockFileNotfound{ throw "File not found or wrong case name. Expected[ $filename ] - Found[$( $file.name )]" } } + + diff --git a/include/MyWrite.ps1 b/include/MyWrite.ps1 index 66a0155..4d31625 100644 --- a/include/MyWrite.ps1 +++ b/include/MyWrite.ps1 @@ -50,11 +50,11 @@ function Write-MyHost { [Alias("Write-Host")] param( [Parameter(ValueFromPipeline)][string]$Message, - #NoNewLine + [Parameter()][string]$ForegroundColor = $OUTPUT_COLOR, [Parameter()][switch]$NoNewLine ) # Write-Host $message -ForegroundColor $OUTPUT_COLOR - Write-ToConsole $message -Color $OUTPUT_COLOR -NoNewLine:$NoNewLine + Write-ToConsole $message -Color $ForegroundColor -NoNewLine:$NoNewLine } function Write-MyDebug { @@ -199,3 +199,5 @@ function Get-ObjetString { return $Object | ConvertTo-Json -Depth 10 -ErrorAction SilentlyContinue } } + +