Skip to content

Commit

Permalink
Merge pull request #34 from MabOneSdk/panbha10
Browse files Browse the repository at this point in the history
rpt
  • Loading branch information
panbha committed Jun 14, 2015
2 parents ba5cb9a + 3585f13 commit e9d5eae
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ function GetAzureRecoveryPointTest
$azureBackUpItem.DataSourceId = $DataSourceId
$azureBackUpItem.Type = $DataSourceType
$recoveryPoints = Get-AzureBackupRecoveryPoint -item $azureBackUpItem
Assert-NotNull $recoveryPoints 'Recovery Points should not be null'
foreach($recoveryPoint in $recoveryPoints)
if (!($recoveryPoints -eq $null))
{
Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null'
foreach($recoveryPoint in $recoveryPoints)
{
Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null'
}
}
}

Expand Down

0 comments on commit e9d5eae

Please sign in to comment.