PSClassUtils
PSClassUtils copied to clipboard
A set of utilities to work with Powershell Classes
Given the following powershell module ```powershell Enum ComputerType { Server Client } Class Computer { [String]$Name [ComputerType]$Type } Function Get-InternalStuff { #Does internal stuff } Function Get-ComputerData { #Does stuff...
```powershell Enum ComputerType { Server Client } Class Computer { [String]$Name [ComputerType]$Type } Function Get-InternalStuff { #Does internal stuff } Function Get-ComputerData { #Does stuff } Export-ModuleMember -Function Get-ComputerData ```...
In title ```powershell > gci C:\modules\PSHTML\Code\Classes | Get-CUEnum throw : The term 'throw' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the...
# Reproduction ```powershell Write-CUClassDiagram -Path C:\Modules\PSHTML\Code\Classes\003.pshtml.components.charts.ps1 -Show -IgnoreCase -ShowComposition ``` ```powershell > Write-CUClassDiagram -Path C:\Users\taavast3\OneDrive\Repo\Projects\OpenSource\PSHTML\Code\Classes\003.pshtml.components.charts.ps1 -Show -IgnoreCase -ShowComposition Warning: node datasetpie, port Row_HoverBorderColor unrecognized Warning: node datasetDoughnut, port Row_HoverBorderColor unrecognized...
The cmdlet is very big, and contains a lot of repetitive code. It also calls two child functions, which are probably not necessary (New-GraphPArameters and New-CUGraphExport) ## New-CUGraphParameters - Doesnt...
While refactoring, I tested a few things, I noticed that we dont have all OutputFormat types. And then also some that are actually not supported by Graphviz (or is it...
Currently: 

In my class I use an ENUM "company" which is stored in a ps1 file. In the file pester during the test "It '[User] - [Constructor]" he expects a parameter...
Quand tu fais dans tes tests Pester un (Get-Command Install-CUDiagramPrerequisites).Parameters.keys -contains "proxy" le résultat est toujours vrai quelque soit la valeur que tu mets à la place de proxy. Pour...