From e1e74b9ffc16563201e439d9f8336d13cf4c02a8 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Mon, 13 Apr 2020 14:36:10 +0100 Subject: [PATCH] Compatibility tests: Use correct genericVerCases test case and remove invalid test case --- PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1 b/PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1 index c6841eea6..4183a8b35 100644 --- a/PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1 +++ b/PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1 @@ -101,7 +101,6 @@ Describe "PowerShell version object" { Context "Version parsing" { BeforeAll { $genericVerCases = @( - @{ VerStr = '6'; Major = 6; Minor = -1; Patch = -1 } @{ VerStr = '6.1'; Major = 6; Minor = 1; Patch = -1 } @{ VerStr = '5.2.7'; Major = 5; Minor = 2; Patch = 7 } @{ VerStr = '512.2124.71'; Major = 512; Minor = 2124; Patch = 71 } @@ -134,7 +133,7 @@ Describe "PowerShell version object" { ) } - It "Parses version string '' as .." -TestCases $semVerCases { + It "Parses version string '' as .." -TestCases $genericVerCases { param([string]$VerStr, [int]$Major, [int]$Minor, [int]$Patch) $v = [Microsoft.PowerShell.CrossCompatibility.PowerShellVersion]$VerStr