Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed Dec 5, 2023
1 parent 6f5efce commit 4cb16c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Pwsh/Parameters/Using-ThrowIfNullOrWhiteSpace-OnObjects.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
function FormatDate {
[CmdletBinding()]
param(
[Parameter(Mandatory, ValueFromPipeline)]
[datetime]$Dt,

[Parameter()]
[ArgumentCompletions(
'([CultureInfo]::InvariantCulture)', 'en-us', 'de-de' )]
[CultureInfo]$Culture = ([CultureInfo]::InvariantCulture)
[CultureInfo]$Culture = [CultureInfo]::InvariantCulture
)

$PSBoundParameters | ConvertTo-Json -Depth 1 -Compress | Write-debug
$null -eq $Culture | Join-String -f 'Cult == $Null: ' | write-verbose -verb
if( [String]::IsNullOrWhiteSpace( $Culture )) {
throw "MandatoryCultureWasBlank!"
Expand Down

0 comments on commit 4cb16c7

Please sign in to comment.