Open LaurentLienhard opened 5 years ago
Idea ! You can change in pester test $resultat.GetType().name by $resultat.GetType().fullname ;-)
With $resultat.GetType().fullname in pester test it seems good with [System.String] or [String] as return Type 👍
Salut @LaurentLienhard c'est quoi le statut de celui la? Je peux le merge?
je pense que Oui. Lors de mes derniers tests quand j'ai fait le PR cela corrigé bien le souci entre [system.XXX] et [XXX]
When you have a method in your class and in return value you put [System.String] or [System.Int32] (probably the others too) if you generate the tests pester it puts errors when you play them
in the pester file you have
and my method is
Actually, the return is a String type and not [System.String]
I think that the solution would be to add in the Write-CUPesterTest a transformation so that if it finds [System.XXXX] it transforms it into [XXXX] in pester test