Skip to content

Commit

Permalink
Update ConvertTo-DotNetVersionClass.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Sep 23, 2024
1 parent c929ef4 commit e253988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Public/ConvertTo-DotNetVersionClass.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Describe -Tag "Convert" -Name "ConvertTo-DotNetVersionClass" {
}

It "Should return a valid .NET version class" {
{ $App[0] | ConvertTo-DotNetVersionClass } | Should -BeOfType [System.Version]
($App[0] | ConvertTo-DotNetVersionClass) | Should -BeOfType [System.Version]
}

It "Should return a string for a version number that fails to convert" {
{ ConvertTo-DotNetVersionClass -Version "v22-build1" } | Should -BeOfType [System.String]
ConvertTo-DotNetVersionClass -Version "v22-build1" | Should -BeOfType [System.String]
}

It "Should return the expected string when converting a version string" {
Expand Down

0 comments on commit e253988

Please sign in to comment.