Skip to content

Commit

Permalink
rename refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fgheysels committed Oct 28, 2021
1 parent a78381c commit 8d7b044
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function global:Get-AzSqlDatabaseVersion ($params, $schema = "dbo") {
return $version
}

function global:VerifyDatabaseVersionRow ($row, [DatabaseVersion]$expectedVersion) {
function global:AssertDatabaseVersion ($row, [DatabaseVersion]$expectedVersion) {
[convert]::ToInt32($row.ItemArray[0]) | Should -Be $expectedVersion.MajorVersionNumber
[convert]::ToInt32($row.ItemArray[1]) | Should -Be $expectedVersion.MinorVersionNumber
[convert]::ToInt32($row.ItemArray[2]) | Should -Be $expectedVersion.PatchVersionNumber
Expand Down Expand Up @@ -311,7 +311,7 @@ InModuleScope Arcus.Scripting.Sql {
)

for ($i = 0; $i -lt $versions.Length; $i++) {
VerifyDatabaseVersionRow $versions[$i] $expectedVersions[$i]
AssertDatabaseVersion $versions[$i] $expectedVersions[$i]
}
}
finally {
Expand Down

0 comments on commit 8d7b044

Please sign in to comment.